Commit 5440235163a5b9e3c322806ad2ba26fc6c8f153f
1 parent
31b6dfca
change request to massage
Showing
1 changed file
with
5 additions
and
4 deletions
Show diff stats
src/app/frontend/controllers/EventsController.php
... | ... | @@ -299,6 +299,11 @@ class EventsController extends \Phalcon\Mvc\Controller |
299 | 299 | |
300 | 300 | if(isset($this->post['event_type'])){ |
301 | 301 | switch ($this->post['event_type']) { |
302 | + case 'add_subscribe': | |
303 | + $this->subscribeNewCustomer($this->project_model->getProjectId($this->host)); | |
304 | + | |
305 | + | |
306 | + break; | |
302 | 307 | case 'online_event': |
303 | 308 | $this->model = new \eventEmail(); |
304 | 309 | $this->delivery_model = new \delivery(); |
... | ... | @@ -332,11 +337,7 @@ class EventsController extends \Phalcon\Mvc\Controller |
332 | 337 | $this->saveSpyOrder($spyID, 'added'); |
333 | 338 | |
334 | 339 | break; |
335 | - case 'add_subscribe': | |
336 | - $this->subscribeNewCustomer($this->project_model->getProjectId($this->host)); | |
337 | 340 | |
338 | - | |
339 | - break; | |
340 | 341 | case 'order_delete': |
341 | 342 | $spyID = $this->getSpyData(); |
342 | 343 | $this->saveSpyOrder($spyID, 'deleted'); | ... | ... |