Hallo, ich glaube ich bin auf ein Bug beim mcw gestoßen.
Wenn ich folgendes im DCA einstelle:
PHP-Code:
'dates' => array
(
'label' => &$GLOBALS['TL_LANG'][$table]['dates'],
'inputType' => 'multiColumnWizard',
'exclude' => true,
'eval' => array (
'columnFields' => array (
'uhrzeit' => array
(
'label' => &$GLOBALS['TL_LANG'][$table]['uhrzeit'],
'inputType' => 'text',
'eval' => array('mandatory'=>false,'style'=>'width:70px' )
),
'hinweise' => array
(
'label' => array('Hinweise',''),
'inputType' => 'select',
'options' => \movinHinweiseModel::findAllArr(),
'eval' => array('style'=>'width:140px', 'multiple'=>true, 'chosen'=>true,'doNotCopy'=>true, 'includeBlankOption'=>true),
'exclude' => true,
)
),
),
'sql' => "blob NOT NULL",
),
Wenn ich nun im Datensatz mehrere dates per mcw hinzufüge und dabei nur bei einem keinen "hinweis" setze. Kommt für die Zeile im MCW "Illegal string offset".
Fülle ich für jede Zeile dieses Feld aus dann kommt keine Fehlermeldung.
Generell speichert er mir aber auch nicht das Feld "uhrzeit" mit ab. Dort bleibt nach erfolgreichen speichern das Feld immer leer.
eval ...'multiple'=>true
ist das Problem. Ohne diese Eigenschaft gehts problemlos.
Jemand eine Idee?
Achja hier noch die Klasse für die Options:
PHP-Code:
public static function findAllArr(){
$arrMovinHinweise = array();
foreach(static::findAll() as $v) $arrMovinHinweise['"'.$v->id.'"'] = $v->titel;
return $arrMovinHinweise;
}
Lesezeichen