msg
This commit is contained in:
parent
4a377af6d3
commit
942feac56d
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue