summaryrefslogtreecommitdiffstats
path: root/application
diff options
context:
space:
mode:
authorBjörn Geiger2011-09-08 14:36:35 +0200
committerBjörn Geiger2011-09-08 14:36:35 +0200
commit8b0cdb8b329fc9a06077f7008f026ab605556232 (patch)
tree7d050b2355a16826b976cabc2f66e6429b023946 /application
parentweitere Fehler korrigiert (diff)
downloadpoolctrl-8b0cdb8b329fc9a06077f7008f026ab605556232.tar.gz
poolctrl-8b0cdb8b329fc9a06077f7008f026ab605556232.tar.xz
poolctrl-8b0cdb8b329fc9a06077f7008f026ab605556232.zip
weitere Korrektur
Diffstat (limited to 'application')
-rw-r--r--application/controllers/EventController.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/application/controllers/EventController.php b/application/controllers/EventController.php
index 9a842cb..f521de7 100644
--- a/application/controllers/EventController.php
+++ b/application/controllers/EventController.php
@@ -288,7 +288,7 @@ class EventController extends Zend_Controller_Action
$filterentriesquery3 = "filterID=" . $event->getPbs_filterID() . "&filtertypeID=10&filtervalue=" . $weekday . "&filtervalue2=" . $weekday;
$filterentriesApiResult3 = PostToHost($this->pbs2host, $this->config['pbs2']['addfilterentry'] . $this->userIDsNamespace['apikey'], 'http://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'], 'poolctrl', $filterentriesquery3);
$filterentriesXMLString3 = $filterentriesApiResult3['http-body'];
- $filterentriesXML3 = new SimpleXMLElement($filterentriesXMLString3);
+ $filterentriesXML3 = new SimpleXMLEle/ment($filterentriesXMLString3);
$filterentriesID3 = sprintf("%s", $filterentriesXML3->filterentry->id);
} else {
$startDate = date('Y-m-d', strtotime($event->getStart()));
@@ -366,7 +366,6 @@ class EventController extends Zend_Controller_Action
$this->_helper->redirector('add', 'event');
return;
} else {
- $params = $this->getRequest()->getParams();
$eventcategorylist = $this->eventcategoryMapper->fetchAll();
$bootOsApiResult = PostToHost($this->pbs2host, $this->config['pbs2']['getbootoss'] . $this->userIDsNamespace['apikey'], 'http://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'], 'poolctrl', '');
$bootOsXMLString = $bootOsApiResult['http-body'];
@@ -414,6 +413,7 @@ class EventController extends Zend_Controller_Action
}
$save = $this->getRequest()->getParam("save");
if (isset($save)){
+ $params = $this->getRequest()->getParams();
$editForm = new Application_Form_EventEdit(array('eventcategorylist' => $eventcategorylist, 'bootoslist' => $bootoslist, 'poollist' => $poollist, $this->getRequest()->getParams()));
if ($editForm->isValid($this->getRequest()->getParams())) {
$this->getRequest()->setParam('start', date ('Y-m-d H:i', strtotime($this->getRequest()->getParam('start'))));
@@ -501,6 +501,7 @@ class EventController extends Zend_Controller_Action
$this->getRequest()->setParam('pbs_poolID', $event->getPbs_poolID());
$this->getRequest()->setParam('pbs_bootosID', $event->getPbs_bootosID());
$this->getRequest()->setParam('pbs_membershipID', $event->getPbs_membershipID());
+ $params = $this->getRequest()->getParams();
$editForm = new Application_Form_EventEdit(array('eventcategorylist' => $eventcategorylist, 'bootoslist' => $bootoslist, 'poollist' => $poollist , 'params' => $params));
}
$this->view->editForm = $editForm;