This commit is contained in:
Martin Müller 2014-04-29 21:30:06 +02:00
parent 6caa98accc
commit 02c26da2c9
1 changed files with 1 additions and 5 deletions

View File

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