css
This commit is contained in:
parent
fbc1b214fd
commit
1bd99f9cda
|
@ -378,8 +378,10 @@ class UserController extends AppController {
|
||||||
|
|
||||||
if($result){
|
if($result){
|
||||||
$this->MiconwareSession->refreshCache();
|
$this->MiconwareSession->refreshCache();
|
||||||
$profil = $this->MiconwareSession->getWorker();
|
|
||||||
if(empty($profil) or count($profil) <= 0)
|
if(isset($profil['DreamjobWorker']))
|
||||||
|
$profil = $this->MiconwareSession->getWorker();
|
||||||
|
else
|
||||||
$profil = $this->MiconwareSession->getCompany();
|
$profil = $this->MiconwareSession->getCompany();
|
||||||
$this->MiconwareSession->setFlash(__('dreamjob.pages.delete'),'flash',array('alert'=>'success'));
|
$this->MiconwareSession->setFlash(__('dreamjob.pages.delete'),'flash',array('alert'=>'success'));
|
||||||
}else{
|
}else{
|
||||||
|
|
|
@ -127,7 +127,7 @@ public function processUpload($check=array()) {
|
||||||
public function delete($id = NULL, $cascade = false){
|
public function delete($id = NULL, $cascade = false){
|
||||||
$dataSource = $this->getDataSource();
|
$dataSource = $this->getDataSource();
|
||||||
$dataSource->begin();
|
$dataSource->begin();
|
||||||
$result = $this->delete($id['DreamjobPageInh']['id'],$cascade);
|
$result = parent::delete($id['DreamjobPageInh']['id'],$cascade);
|
||||||
if($result){
|
if($result){
|
||||||
$result = $this->DreamjobPageInh->delete($id['DreamjobPageInh']['id'],$cascade);
|
$result = $this->DreamjobPageInh->delete($id['DreamjobPageInh']['id'],$cascade);
|
||||||
}
|
}
|
||||||
|
|
|
@ -43,7 +43,7 @@ class DreamjobPageText extends AppModel {
|
||||||
public function delete($id = NULL, $cascade = false){
|
public function delete($id = NULL, $cascade = false){
|
||||||
$dataSource = $this->getDataSource();
|
$dataSource = $this->getDataSource();
|
||||||
$dataSource->begin();
|
$dataSource->begin();
|
||||||
$result = $this->delete($id,$cascade);
|
$result = parent::delete($id,$cascade);
|
||||||
if($result){
|
if($result){
|
||||||
$result = $this->DreamjobPageInh->delete($id,$cascade);
|
$result = $this->DreamjobPageInh->delete($id,$cascade);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue