need individual rows/total rows error tracker.

This commit is contained in:
Naomi 2011-04-15 11:22:40 -04:00
parent 4d8f434059
commit e853a6ff6e
2 changed files with 10 additions and 2 deletions

View file

@ -37,6 +37,8 @@ class Application_Form_AddShowRebroadcastDates extends Zend_Form_SubForm
public function checkReliantFields($formData) {
$noError = true;
for($i=1; $i<=10; $i++) {
$valid = true;
@ -58,6 +60,7 @@ class Application_Form_AddShowRebroadcastDates extends Zend_Form_SubForm
}
if($valid === false) {
$noError = false;
continue;
}
@ -81,10 +84,11 @@ class Application_Form_AddShowRebroadcastDates extends Zend_Form_SubForm
if($rebroad_start < $show_end) {
$this->getElement('add_show_rebroadcast_time_'.$i)->setErrors(array("Must wait at least 1 hour to rebroadcast"));
$valid = false;
$noError = false;
}
}
return $valid;
return $noError;
}
}