CC-2116 : Add Extra Form Validation For Rebroadcasts

adding check for time fields since zend passes 09:0f
setting min date on rebroadcast date picker to be start date of show.
This commit is contained in:
naomiaro 2011-04-01 19:43:57 -04:00
parent 8f8bd68849
commit b59e7aef32
4 changed files with 24 additions and 22 deletions

View file

@ -31,7 +31,8 @@ class Application_Form_AddShowWhen extends Zend_Form_SubForm
'filters' => array('StringTrim'),
'validators' => array(
'NotEmpty',
array('date', false, array('HH:mm'))
array('date', false, array('HH:mm')),
array('regex', false, array('/^[0-9:]+$/', 'messages' => 'Invalid character entered'))
)
));