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) {
|
public function checkReliantFields($formData) {
|
||||||
|
|
||||||
|
$noError = true;
|
||||||
|
|
||||||
for($i=1; $i<=10; $i++) {
|
for($i=1; $i<=10; $i++) {
|
||||||
|
|
||||||
$valid = true;
|
$valid = true;
|
||||||
|
@ -53,6 +55,7 @@ class Application_Form_AddShowAbsoluteRebroadcastDates extends Zend_Form_SubForm
|
||||||
}
|
}
|
||||||
|
|
||||||
if($valid === false) {
|
if($valid === false) {
|
||||||
|
$noError = false;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -72,10 +75,11 @@ class Application_Form_AddShowAbsoluteRebroadcastDates extends Zend_Form_SubForm
|
||||||
if($rebroad_start < $show_end) {
|
if($rebroad_start < $show_end) {
|
||||||
$this->getElement('add_show_rebroadcast_time_absolute_'.$i)->setErrors(array("Must wait at least 1 hour to rebroadcast"));
|
$this->getElement('add_show_rebroadcast_time_absolute_'.$i)->setErrors(array("Must wait at least 1 hour to rebroadcast"));
|
||||||
$valid = false;
|
$valid = false;
|
||||||
|
$noError = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return $valid;
|
return $noError;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -37,6 +37,8 @@ class Application_Form_AddShowRebroadcastDates extends Zend_Form_SubForm
|
||||||
|
|
||||||
public function checkReliantFields($formData) {
|
public function checkReliantFields($formData) {
|
||||||
|
|
||||||
|
$noError = true;
|
||||||
|
|
||||||
for($i=1; $i<=10; $i++) {
|
for($i=1; $i<=10; $i++) {
|
||||||
|
|
||||||
$valid = true;
|
$valid = true;
|
||||||
|
@ -58,6 +60,7 @@ class Application_Form_AddShowRebroadcastDates extends Zend_Form_SubForm
|
||||||
}
|
}
|
||||||
|
|
||||||
if($valid === false) {
|
if($valid === false) {
|
||||||
|
$noError = false;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -81,10 +84,11 @@ class Application_Form_AddShowRebroadcastDates extends Zend_Form_SubForm
|
||||||
if($rebroad_start < $show_end) {
|
if($rebroad_start < $show_end) {
|
||||||
$this->getElement('add_show_rebroadcast_time_'.$i)->setErrors(array("Must wait at least 1 hour to rebroadcast"));
|
$this->getElement('add_show_rebroadcast_time_'.$i)->setErrors(array("Must wait at least 1 hour to rebroadcast"));
|
||||||
$valid = false;
|
$valid = false;
|
||||||
|
$noError = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return $valid;
|
return $noError;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue