This commit is contained in:
Martin Müller 2014-04-29 20:26:24 +02:00
parent 4a377af6d3
commit 942feac56d
2 changed files with 2 additions and 2 deletions

View File

@ -10,7 +10,7 @@ class JobController extends AppController {
* @var array * @var array
*/ */
public $uses = array('DreamjobJobOpening','DreamjobJobFavority','DreamjobJobApplication','DreamjobPageText','DreamjobPageImage','DreamjobJobMsg','DreamjobCvEntry','DreamjobListCvCategory','DreamjobListBranch','DreamjobListCity','DreamjobJobMsg'); public $uses = array('DreamjobJobOpening','DreamjobJobFavority','DreamjobJobApplication','DreamjobPageText','DreamjobPageImage','DreamjobJobMsg','DreamjobCvEntry','DreamjobListCvCategory','DreamjobListBranch','DreamjobListCity');
/** /**
* Displays a view * Displays a view

View File

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