This commit is contained in:
Martin Müller 2014-04-29 20:58:58 +02:00
parent 8869f9f3d0
commit fa24b58015
1 changed files with 1 additions and 2 deletions

View File

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