summaryrefslogtreecommitdiffstats
path: root/application/forms/EventAdd.php
diff options
context:
space:
mode:
authorBjörn Geiger2011-06-29 19:36:52 +0200
committerBjörn Geiger2011-06-29 19:36:52 +0200
commit3b7692bc0e418738c67da5466d92fd51e4d74e03 (patch)
tree11b39fea42fc6d312e1e233565c8867c19391f17 /application/forms/EventAdd.php
parentminor (diff)
downloadpoolctrl-3b7692bc0e418738c67da5466d92fd51e4d74e03.tar.gz
poolctrl-3b7692bc0e418738c67da5466d92fd51e4d74e03.tar.xz
poolctrl-3b7692bc0e418738c67da5466d92fd51e4d74e03.zip
Add und Edit Event korrigiert
Diffstat (limited to 'application/forms/EventAdd.php')
-rw-r--r--application/forms/EventAdd.php11
1 files changed, 7 insertions, 4 deletions
diff --git a/application/forms/EventAdd.php b/application/forms/EventAdd.php
index 7710ea6..65f2919 100644
--- a/application/forms/EventAdd.php
+++ b/application/forms/EventAdd.php
@@ -46,6 +46,9 @@ class Application_Form_EventAdd extends Zend_Form
public function init()
{
+ $this->setName('EventAdd');
+ $this->setMethod('post');
+
$this->addElement('text', 'title', array(
'filters' => array('StringTrim'),
'validators' => array(
@@ -102,7 +105,7 @@ class Application_Form_EventAdd extends Zend_Form
$eventcategoryfield->addMultiOption($c->getID(), $c->getTitle());
}
}
-
+
$eventcategoryfield->setRegisterInArrayValidator(false);
$this->addElement($eventcategoryfield);
@@ -120,7 +123,7 @@ class Application_Form_EventAdd extends Zend_Form
if(count($this->poollist)>0){
foreach($this->poollist as $pool => $p){
- $poolfield->addMultiOption($p['poolID'], $p['title']);
+ $poolfield->addMultiOption($p->getID(), $p->getTitle());
}
}
@@ -132,7 +135,7 @@ class Application_Form_EventAdd extends Zend_Form
//
// if(count($this->membershiplist)>0){
// foreach($this->membershiplist as $membership => $m){
- // $membershipfield->addMultiOption($m['membershipID'], $m['person']);
+ // $membershipfield->addMultiOption($m->getID(), $m->getPersonID());
// }
// }
//
@@ -144,7 +147,7 @@ class Application_Form_EventAdd extends Zend_Form
if(count($this->bootoslist)>0){
foreach($this->bootoslist as $bootos => $b){
- $bootosfield->addMultiOption($b['bootosID'], $b['title']);
+ $bootosfield->addMultiOption($b->getID(), $b->getTitle());
}
}