mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
BUGFIX #5343: Call DataObject::onBeforeWrite only once for SiteTree
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.4@102084 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
20a61098c6
commit
04fe15cc7c
@ -1328,8 +1328,6 @@ class SiteTree extends DataObject implements PermissionProvider,i18nEntityProvid
|
|||||||
//------------------------------------------------------------------------------------//
|
//------------------------------------------------------------------------------------//
|
||||||
|
|
||||||
protected function onBeforeWrite() {
|
protected function onBeforeWrite() {
|
||||||
parent::onBeforeWrite();
|
|
||||||
|
|
||||||
// If Sort hasn't been set, make this page come after it's siblings
|
// If Sort hasn't been set, make this page come after it's siblings
|
||||||
if(!$this->Sort) {
|
if(!$this->Sort) {
|
||||||
$parentID = ($this->ParentID) ? $this->ParentID : 0;
|
$parentID = ($this->ParentID) ? $this->ParentID : 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user