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:
Sam Minnee 2010-04-05 23:47:15 +00:00
parent 20a61098c6
commit 04fe15cc7c

View File

@ -1328,8 +1328,6 @@ class SiteTree extends DataObject implements PermissionProvider,i18nEntityProvid
//------------------------------------------------------------------------------------//
protected function onBeforeWrite() {
parent::onBeforeWrite();
// If Sort hasn't been set, make this page come after it's siblings
if(!$this->Sort) {
$parentID = ($this->ParentID) ? $this->ParentID : 0;