css
This commit is contained in:
parent
1bd99f9cda
commit
7ee7756435
|
@ -127,9 +127,10 @@ 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 = parent::delete($id['DreamjobPageInh']['id'],$cascade);
|
|
||||||
|
$result = $this->DreamjobPageInh->delete($id['DreamjobPageInh']['id'],$cascade);
|
||||||
if($result){
|
if($result){
|
||||||
$result = $this->DreamjobPageInh->delete($id['DreamjobPageInh']['id'],$cascade);
|
$result = parent::delete($id['DreamjobPageInh']['id'],$cascade);
|
||||||
}
|
}
|
||||||
if($result){
|
if($result){
|
||||||
$filename = WWW_ROOT . $this->uploadDir . DS .$id['DreamjobPageImage']['image'];
|
$filename = WWW_ROOT . $this->uploadDir . DS .$id['DreamjobPageImage']['image'];
|
||||||
|
|
|
@ -43,9 +43,9 @@ 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 = parent::delete($id,$cascade);
|
$result = $this->DreamjobPageInh->delete($id,$cascade);
|
||||||
if($result){
|
if($result){
|
||||||
$result = $this->DreamjobPageInh->delete($id,$cascade);
|
$result = parent::delete($id,$cascade);
|
||||||
}
|
}
|
||||||
if ($result) {
|
if ($result) {
|
||||||
$dataSource->commit();
|
$dataSource->commit();
|
||||||
|
|
Loading…
Reference in New Issue