summaryrefslogtreecommitdiffstats
path: root/application/forms/EventEdit.php
diff options
context:
space:
mode:
Diffstat (limited to 'application/forms/EventEdit.php')
-rwxr-xr-xapplication/forms/EventEdit.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/application/forms/EventEdit.php b/application/forms/EventEdit.php
index 00eb210..baee5b4 100755
--- a/application/forms/EventEdit.php
+++ b/application/forms/EventEdit.php
@@ -156,6 +156,7 @@ class Application_Form_EventEdit extends Zend_Form
'label' => 'Start:',
'value' => date ('m/d/Y h:i a', strtotime( $this->params['start'])),
));
+ $this->getElement('start')->addPrefixPath('Poolctrl_Validate', 'Poolctrl/Validator/', 'validate');
if(isset($this->params['end'])) {
$this->addElement('text', 'end', array(
@@ -184,6 +185,7 @@ class Application_Form_EventEdit extends Zend_Form
));
$this->getElement('end')->addPrefixPath('Poolctrl_Validate', 'Poolctrl/Validator/', 'validate');
}
+ $this->getElement('start')->addValidator(new Poolctrl_Validate_EventOverlapping(array('end' => $this->getElement('end')->getValue())));
if( $this->params['repeat'] == 1) {
$this->addElement('checkbox', 'repeat', array(