Zitat von
Spooky
Poste mal den kompletten Stack Trace und die DCA Definition für tl_bb_yy
eintragen läuft über ajax somit krieg ich nur das result per console.log
Das vor dem Fehler sind alle Felder und nach dem br alle Values
Code:
published,name,shortdescription,main_category,price_offen_1,menge_offen_1,einheit_offen_1,price_flasche_1,menge_flasche_1,einheit_flasche_1,hersteller,jahrgang,anbaugebiet_wein<br>'1','test','','Erfrischungsgetränk','','','cl','','','cl','','',''<!-- Error: Uncaught PDOException: SQLSTATE[22007]: Invalid datetime format: 1366 Incorrect double value: '' for column `xxx_1`.`tl_bb_getraenke`.`price_offen_1` at row 1 in /srv/www/xxx/public/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php:132
Stack trace:
#0 /srv/www/xxx/public/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php(132): PDO->query('INSERT INTO tl_...')
#1 /srv/www/xxx/public/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOQueryImplementation.php(36): Doctrine\DBAL\Driver\PDOConnection->doQuery('INSERT INTO tl_...')
#2 /srv/www/xxx/public/vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(1295): Doctrine\DBAL\Driver\PDOConnection->query('INSERT INTO tl_...')
#3 /srv/www/xxx/public/vendor/contao/core-bundle/src/Resources/contao/library/Contao/Database/Statement.php(274): Doctrine\DBAL\Connection->executeQuery('INSERT INTO tl_...')
#4 /srv/www/xxx/public/vendor/contao/core-bundle/src/Resources/contao/library/Contao/Database/Statement.php(24 (500 Internal Server Error) -->
PHP-Code:
'price_offen_1' => array
(
'label' => &$GLOBALS['TL_LANG']['tl_bb_getraenke']['price_offen_1'],
'inputType' => 'text',
'exclude' => true,
'sorting' => true,
'flag' => 1,
'search' => true,
'eval' => array('rgxp'=>'digit', 'unique'=>false, 'decodeEntities'=>true, 'maxlength'=>128, 'tl_class'=>'clr'),
'sql' => "double(10,2) NULL"
Lesezeichen