summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBjörn Geiger2011-10-24 13:32:45 +0200
committerBjörn Geiger2011-10-24 13:32:45 +0200
commit5d5b21c19af572b7aae88c19f72580231006400e (patch)
treece264953596857a61dbf3b1653cc7dbdef11b7ff
parentweitere korrektur (diff)
downloadpoolctrl-5d5b21c19af572b7aae88c19f72580231006400e.tar.gz
poolctrl-5d5b21c19af572b7aae88c19f72580231006400e.tar.xz
poolctrl-5d5b21c19af572b7aae88c19f72580231006400e.zip
nochmal Korrektur2
-rwxr-xr-xapplication/forms/EventAdd.php2
-rwxr-xr-xapplication/forms/EventEdit.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/application/forms/EventAdd.php b/application/forms/EventAdd.php
index 18ccb62..734659c 100755
--- a/application/forms/EventAdd.php
+++ b/application/forms/EventAdd.php
@@ -198,7 +198,7 @@ class Application_Form_EventAdd extends Zend_Form
'value' => $this->end,
));
$this->getElement('end')->addPrefixPath('Poolctrl_Validate', 'Poolctrl/Validate/', 'validate');
- $this->getElement('start')->addValidator(new Poolctrl_Validate_EventOverlapping(), array('end' => $this->getElement('end')->getValue(), 'poolID' => $this->poolID));
+ $this->getElement('start')->addValidator(new Poolctrl_Validate_EventOverlapping(array('end' => $this->getElement('end')->getValue(), 'poolID' => $this->poolID)));
$this->getElement('start')->addPrefixPath('Poolctrl_Validate', 'Poolctrl/Validate/', 'validate');
$this->addElement('checkbox', 'repeat', array(
diff --git a/application/forms/EventEdit.php b/application/forms/EventEdit.php
index 63b8dc1..1e1ce39 100755
--- a/application/forms/EventEdit.php
+++ b/application/forms/EventEdit.php
@@ -184,7 +184,7 @@ class Application_Form_EventEdit extends Zend_Form
));
$this->getElement('end')->addPrefixPath('Poolctrl_Validate', 'Poolctrl/Validate/', 'validate');
}
- $this->getElement('start')->addValidator(new Poolctrl_Validate_EventOverlapping(), array('end' => $this->getElement('end')->getValue(), 'poolID' => $this->params['pbs_poolID']));
+ $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/Validate/', 'validate');
if( $this->params['repeat'] == 1) {