summaryrefslogtreecommitdiffstats
path: root/application/controllers/EventController.php
diff options
context:
space:
mode:
Diffstat (limited to 'application/controllers/EventController.php')
-rw-r--r--application/controllers/EventController.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/application/controllers/EventController.php b/application/controllers/EventController.php
index 76e58c9..2647d6a 100644
--- a/application/controllers/EventController.php
+++ b/application/controllers/EventController.php
@@ -57,14 +57,13 @@ class EventController extends Zend_Controller_Action
{
$eventcategorylist = $this->eventcategoryMapper->fetchAll();
if (!isset($_POST["add"])){
-
$addForm = new Application_Form_EventAdd(array('eventcategorylist' => $eventcategorylist));
} else {
$addForm = new Application_Form_EventAdd(array('eventcategorylist' => $eventcategorylist, $_POST));
if ($addForm->isValid($_POST)) {
$event = new Application_Model_Event($_POST);
-
+ $event->setPbsMembershipID(1);
try {
$eventID = $this->eventMapper->save($event);
} catch(Zend_Exception $e)
@@ -115,6 +114,7 @@ class EventController extends Zend_Controller_Action
if ($editForm->isValid($_POST)) {
$event = new Application_Model_Event($_POST);
$event->setID($eventID);
+ $event->setPbsMembershipID(1);
try {
$this->eventMapper->save($event);
} catch(Zend_Exception $e)