summaryrefslogtreecommitdiffstats
path: root/application/forms
diff options
context:
space:
mode:
authorBjörn Geiger2011-10-24 13:15:49 +0200
committerBjörn Geiger2011-10-24 13:15:49 +0200
commit142aefa6588380e46bbee0ad5fa75f9cb461caa8 (patch)
tree5deb774ba81b424b8ccb7a7c861469b72498bfcd /application/forms
parentMerge branch 'master' of git.openslx.org:lsfks/projekte/poolctrl (diff)
downloadpoolctrl-142aefa6588380e46bbee0ad5fa75f9cb461caa8.tar.gz
poolctrl-142aefa6588380e46bbee0ad5fa75f9cb461caa8.tar.xz
poolctrl-142aefa6588380e46bbee0ad5fa75f9cb461caa8.zip
korrektur von eben
Diffstat (limited to 'application/forms')
-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 6f579b5..9027917 100755
--- a/application/forms/EventAdd.php
+++ b/application/forms/EventAdd.php
@@ -199,7 +199,7 @@ class Application_Form_EventAdd extends Zend_Form
'value' => $this->end,
));
$this->getElement('end')->addPrefixPath('Poolctrl_Validate', 'Poolctrl/Validator/', 'validate');
- $this->getElement('start')->addValidator(new Poolctrl_Validate_EventOverlapping(), array('end' => $this->getElement('end')->getValue()));
+ $this->getElement('start')->addValidator(new Poolctrl_Validate_EventOverlapping(), array('end' => $this->getElement('end')->getValue(), 'poolID' => $this->poolID));
$this->addElement('checkbox', 'repeat', array(
'onchange' => 'repeatChanged("repeat")',
diff --git a/application/forms/EventEdit.php b/application/forms/EventEdit.php
index baee5b4..72e3d7e 100755
--- a/application/forms/EventEdit.php
+++ b/application/forms/EventEdit.php
@@ -185,7 +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())));
+ $this->getElement('start')->addValidator(new Poolctrl_Validate_EventOverlapping(), array('end' => $this->getElement('end')->getValue(), 'poolID' => $this->params['pbs_poolID']));
if( $this->params['repeat'] == 1) {
$this->addElement('checkbox', 'repeat', array(