menatwork / MultiColumnWizard

Contao Extension :: Define unlimited dca fields dynamically
http://contao.org/en/extension-list/view/MultiColumnWizard.html
28 stars 30 forks source link

Problem bei Uhrzeitfeld mit Wert "01:00" #252

Closed arno1979 closed 4 years ago

arno1979 commented 6 years ago

Ich habe zusammen mit Kester Mielke in diesem Ticket https://github.com/kmielke/calendar_extended/issues/57 herausgefunden, dass es wohl ein Problem beim speichern einer Uhrzeit mit dem Wert "01:00" gibt.

Die Definition für die Felder sieht bei Kester so aus:

    /**
     * listFixedDates()
     */
    public function listFixedDates()
    {
        $columnFields = null;

        $columnFields = array
        (
            'new_repeat' => array(
                'label' => &$GLOBALS['TL_LANG']['tl_calendar_events']['exception'],
                'exclude' => true,
                'inputType' => 'text',
                'eval' => array('rgxp' => 'date', 'datepicker' => true, 'doNotCopy' => true, 'style' => 'width:100px', 'tl_class' => 'wizard')
            ),
            'new_start' => array
            (
                'label' => &$GLOBALS['TL_LANG']['tl_calendar_events']['new_start'],
                'exclude' => true,
                'inputType' => 'text',
                'eval' => array('rgxp' => 'time', 'datepicker' => true, 'doNotCopy' => true, 'style' => 'width:40px')
            ),
            'new_end' => array
            (
                'label' => &$GLOBALS['TL_LANG']['tl_calendar_events']['new_end'],
                'exclude' => true,
                'inputType' => 'text',
                'eval' => array('rgxp' => 'time', 'datepicker' => true, 'doNotCopy' => true, 'style' => 'width:40px')
            ),
            'reason' => array
            (
                'label' => &$GLOBALS['TL_LANG']['tl_calendar_events']['reason'],
                'exclude' => true,
                'inputType' => 'text',
                'eval' => array('doNotCopy' => true, 'style' => 'width:350px')
            )
        );

        return $columnFields;
    }

Betroffen sind hier die Felder "new_start" und "new_end."

Ich vermute, dass es etwas mit der Feldprüfung per Regular Expression "rgxp" => "time" zu tun hat. Nimmt man die (und den Datepicker) nämlich raus, besteht das Problem nicht mehr.

Viele Grüße Arno

zonky2 commented 6 years ago

Ich vermute, dass es etwas mit der Feldprüfung per Regular Expression "rgxp" => "time" zu tun hat. Nimmt man die (und den Datepicker) nämlich raus, besteht das Problem nicht mehr.

das würde ja eher auf ein Problem bei Contao hin schließen... der MCW macht keine eigene rgxp-Prüfung