From 7d28aca7851344d53c659527e8c7844e51df8b7b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20M=C3=BCller?= Date: Tue, 29 Apr 2014 21:13:06 +0200 Subject: [PATCH] msg --- app/Model/DreamjobJobMsg.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/Model/DreamjobJobMsg.php b/app/Model/DreamjobJobMsg.php index affa6d1..1046cca 100644 --- a/app/Model/DreamjobJobMsg.php +++ b/app/Model/DreamjobJobMsg.php @@ -47,9 +47,10 @@ class DreamjobJobMsg extends AppModel { $dataSource->begin(); $result = $this->save(); if($result){ - die("Application"+$this->data['application_id']+"Lola"+$this->application_id); + die("Application"+$this->data['application_id']); + die("Lola"+$this->application_id); $app = $this->Application->find('first', array('conditions' => array('Application.id' => $this->application_id))); - die($app); + if($this->fromcompany) $result = self::sendMail($app['User']['mail'],$this->application_id); else