need individual rows/total rows error tracker.
This commit is contained in:
parent
4d8f434059
commit
e853a6ff6e
2 changed files with 10 additions and 2 deletions
|
@ -32,6 +32,8 @@ class Application_Form_AddShowAbsoluteRebroadcastDates extends Zend_Form_SubForm
|
|||
|
||||
public function checkReliantFields($formData) {
|
||||
|
||||
$noError = true;
|
||||
|
||||
for($i=1; $i<=10; $i++) {
|
||||
|
||||
$valid = true;
|
||||
|
@ -53,6 +55,7 @@ class Application_Form_AddShowAbsoluteRebroadcastDates extends Zend_Form_SubForm
|
|||
}
|
||||
|
||||
if($valid === false) {
|
||||
$noError = false;
|
||||
continue;
|
||||
}
|
||||
|
||||
|
@ -72,10 +75,11 @@ class Application_Form_AddShowAbsoluteRebroadcastDates extends Zend_Form_SubForm
|
|||
if($rebroad_start < $show_end) {
|
||||
$this->getElement('add_show_rebroadcast_time_absolute_'.$i)->setErrors(array("Must wait at least 1 hour to rebroadcast"));
|
||||
$valid = false;
|
||||
$noError = false;
|
||||
}
|
||||
}
|
||||
|
||||
return $valid;
|
||||
return $noError;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue