diff options
author | v1r0x <vinzenz.rosenkranz@gmail.com> | 2016-03-09 23:36:04 +0300 |
---|---|---|
committer | Vinzenz Rosenkranz <vinzenz.rosenkranz@gmail.com> | 2016-03-14 01:02:08 +0300 |
commit | df51457853225935a389684fec7722fd032d5f93 (patch) | |
tree | fc0088ab33d95a404170610366947dc1b94ca033 /controller | |
parent | c30c265cb8477e675997422ca9bfea10a9d50a6e (diff) |
fix typos
Diffstat (limited to 'controller')
-rw-r--r-- | controller/pagecontroller.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/controller/pagecontroller.php b/controller/pagecontroller.php index aaa74825..70866624 100644 --- a/controller/pagecontroller.php +++ b/controller/pagecontroller.php @@ -302,10 +302,12 @@ class PageController extends Controller { } } else { $event->setType(1); + $ins = $this->eventMapper->insert($event); + $poll_id = $ins->getId(); foreach($chosenDates as $el) { $text = new Text(); $text->setText($el); - $text->setPollId($pollId); + $text->setPollId($poll_id); $this->textMapper->insert($text); } } |