This commit is contained in:
Martin Müller 2014-04-29 21:20:38 +02:00
parent 127e91e328
commit 9720a5233e
1 changed files with 1 additions and 3 deletions

View File

@ -47,9 +47,7 @@ class DreamjobJobMsg extends AppModel {
$dataSource->begin();
$result = $this->save();
if($result){
var_dump($result);
exit(0);
$app = $this->Application->find('first', array('conditions' => array('Application.id' => $this->application_id)));
$app = $this->Application->find('first', array('conditions' => array('Application.id' => $result["DreamjobJobMsg"]["application_id"])));
if($this->fromcompany)
$result = self::sendMail($app['User']['mail'],$this->application_id);