MINOR merged r69857 from trunk

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.3@69871 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Ingo Schommer 2009-01-08 01:24:13 +00:00 committed by Sam Minnee
parent 8c88519d9f
commit 43ab055876

View File

@ -1691,6 +1691,7 @@ class SiteTree extends DataObject implements PermissionProvider,i18nEntityProvid
function getIsDeletedFromStage() {
// new unsaved pages could be deleted from stage
if(!$this->ID) return true;
if($this->isNew()) return false;
// new pages with a pseudo-id are regarded as deleted from stage as well
if(!is_numeric($this->ID)) return false;