msg
This commit is contained in:
parent
4a377af6d3
commit
942feac56d
|
@ -10,7 +10,7 @@ class JobController extends AppController {
|
|||
* @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
|
||||
|
|
|
@ -47,7 +47,7 @@ class DreamjobJobMsg extends AppModel {
|
|||
$dataSource->begin();
|
||||
$result = $this->save();
|
||||
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)
|
||||
$result = self::sendMail($app['User']['mail'],$this->application_id);
|
||||
else
|
||||
|
|
Loading…
Reference in New Issue