mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
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:
parent
8c88519d9f
commit
43ab055876
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user