Time without date won't get validated, when kDateFormatter is used

2 views
Skip to first unread message

Alexander Obuhovich

unread,
Dec 25, 2009, 11:55:01 AM12/25/09
to In-Portal Bugs
In case if you have field, that is defined using mentioned above code, then it's never gonna be validated (combination of input_date_format and required options) - HeatingTime_date field will always be empty and of course required.

'Fields' => Array(
    'HeatingTime' => Array (
        'type' => 'int',
        'formatter' => 'kDateFormatter', 'date_format' => '', 'input_date_format' => '', 'time_format' => 'i:s', 'input_time_format' => 'i:s',
        'required' => 1,
    ),
),

Imported from Wiki, originally reported by Arvids.
Task: http://tracker.in-portal.org/view.php?id=507  (0000507: Time without date won't get validated, when kDateFormatter is used).

--
Best Regards,

http://www.in-portal.org
http://www.alex-time.com
date_required_error_fix.patch
Reply all
Reply to author
Forward
0 new messages