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:
Hayden Smith 2008-08-08 05:01:42 +00:00
parent fc1cea3817
commit 7e791ea681

View File

@ -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();
}