CC-2196: Update a Live show with invalid data, uncheck the Record checkbox

-fixed
This commit is contained in:
martin 2011-04-18 12:01:02 -04:00
parent 114fe1ad3f
commit 7a3fbe9ac7
4 changed files with 19 additions and 14 deletions

View file

@ -43,6 +43,7 @@ class Application_Form_AddShowRebroadcastDates extends Zend_Form_SubForm
$valid = true;
$days = $formData['add_show_rebroadcast_date_'.$i];
$time = $formData['add_show_rebroadcast_time_'.$i];
if(trim($days) == "" && trim($time) == "") {
continue;
@ -53,7 +54,7 @@ class Application_Form_AddShowRebroadcastDates extends Zend_Form_SubForm
$valid = false;
}
$time = $formData['add_show_rebroadcast_time_'.$i];
if (trim($time) == ""){
$this->getElement('add_show_rebroadcast_time_'.$i)->setErrors(array("Time must be specified"));
$valid = false;