Wird beim Anlegen eines neuen Produktes das Feld nicht explizit belegt, wird Null eingesetzt. Laut sql Angabe sollte jedoch ein Leerstring kommen.
Definition des neuen Feldes:
Code:
$GLOBALS['TL_DCA']['tl_iso_product']['fields']['quantity'] = ['label' => &$GLOBALS['TL_LANG']['tl_iso_product']['quantity'],
'filter' => true,
'sorting' => true,
'inputType' => 'text',
'eval' => ['mandatory' => false, 'doNotShow' => false, 'tl_class' => 'w50'],
'attributes' => ['legend' => 'general_legend', 'multilingual' => false, 'fe_sorting' => true],
'sql' => "varchar(255) default ''",
];
contao 4.13.30, Isotope 2.8.16, PHP 8.1
Lesezeichen