From e26ff133d5d558fcab6c081ed4f9bdec97d55e5e Mon Sep 17 00:00:00 2001 From: Björn Geiger Date: Mon, 24 Oct 2011 13:22:40 +0200 Subject: Minor --- application/forms/EventAdd.php | 2 +- application/forms/EventEdit.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'application/forms') diff --git a/application/forms/EventAdd.php b/application/forms/EventAdd.php index 9027917..a4e784a 100755 --- a/application/forms/EventAdd.php +++ b/application/forms/EventAdd.php @@ -185,7 +185,6 @@ class Application_Form_EventAdd extends Zend_Form 'label' => 'Start:', 'value' => $this->start, )); - $this->getElement('start')->addPrefixPath('Poolctrl_Validate', 'Poolctrl/Validator/', 'validate'); $this->addElement('text', 'end', array( 'filters' => array('StringTrim'), @@ -200,6 +199,7 @@ class Application_Form_EventAdd 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(), 'poolID' => $this->poolID)); + $this->getElement('start')->addPrefixPath('Poolctrl_Validate', 'Poolctrl/Validator/', 'validate'); $this->addElement('checkbox', 'repeat', array( 'onchange' => 'repeatChanged("repeat")', diff --git a/application/forms/EventEdit.php b/application/forms/EventEdit.php index 72e3d7e..af8b568 100755 --- a/application/forms/EventEdit.php +++ b/application/forms/EventEdit.php @@ -156,7 +156,6 @@ 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( @@ -186,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(), 'poolID' => $this->params['pbs_poolID'])); + $this->getElement('start')->addPrefixPath('Poolctrl_Validate', 'Poolctrl/Validator/', 'validate'); if( $this->params['repeat'] == 1) { $this->addElement('checkbox', 'repeat', array( -- cgit v1.2.3-55-g7522