This commit is contained in:
Martin Müller 2014-05-14 11:32:52 +02:00
parent 67af9ec9df
commit 04a8dd8383
1 changed files with 2 additions and 2 deletions

View File

@ -59,9 +59,9 @@ class DreamjobJobMsg extends AppModel {
$app = $this->DreamjobJobApplication->find('first', array('conditions' => array('DreamjobJobApplication.id' => $result["DreamjobJobMsg"]["application_id"]))); $app = $this->DreamjobJobApplication->find('first', array('conditions' => array('DreamjobJobApplication.id' => $result["DreamjobJobMsg"]["application_id"])));
if ($this->fromcompany) if ($this->fromcompany)
$result = self::sendMail($app['WorkerUser']['mail'], $this->application_id, array('User' => $app['WorkerUser'], 'AppUser' => $app['AppUserWorker'])); $result = self::sendMail($app['WorkerUser']['mail'], $this->application_id, array('User' => $app['WorkerUser'], 'AppUser' => $app['AppUserWorker']),true);
else else
$result = self::sendMail($app['User']['mail'], $this->application_id, array('DreamjobCompany' => $app['DreamjobCompany']), true); $result = self::sendMail($app['User']['mail'], $this->application_id, array('DreamjobCompany' => $app['DreamjobCompany']));
} }
if ($result) { if ($result) {
$dataSource->commit(); $dataSource->commit();