mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
Merged [47015]: Moved call to DataObject::write and makes use of DataObject::destroy.
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@60179 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
fc1cea3817
commit
7e791ea681
@ -507,8 +507,9 @@ HTML;
|
||||
foreach($_REQUEST[$oneExtra->class] as $field => $value) {
|
||||
$oneExtra->setField($field, $value);
|
||||
}
|
||||
$oneExtra->write();
|
||||
}
|
||||
$oneExtra->write();
|
||||
$oneExtra->destroy();
|
||||
}
|
||||
}
|
||||
$this->getActionUpdateJS($generic);
|
||||
@ -519,6 +520,8 @@ HTML;
|
||||
$this->saveAfterCall($generic, $urlParams, $form);
|
||||
}
|
||||
|
||||
$generic->destroy();
|
||||
|
||||
return FormResponse::respond();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user