diff --git a/core/model/SiteTree.php b/core/model/SiteTree.php index 066f7c98d..aa7b9e5dc 100644 --- a/core/model/SiteTree.php +++ b/core/model/SiteTree.php @@ -1315,8 +1315,6 @@ class SiteTree extends DataObject { // Handle activities undertaken by decorators $this->extend('onBeforePublish', $original); - $this->AssignedToID = 0; - $this->RequestedByID = 0; $this->Status = "Published"; //$this->PublishedByID = Member::currentUser()->ID; $this->write(); @@ -1358,8 +1356,6 @@ class SiteTree extends DataObject { */ function doRollbackTo($version) { $this->publish($version, "Stage", true); - $this->AssignedToID = 0; - $this->RequestedByID = 0; $this->Status = "Saved (update)"; $this->writeWithoutVersion(); } @@ -1372,8 +1368,6 @@ class SiteTree extends DataObject { // Use a clone to get the updates made by $this->publish $clone = DataObject::get_by_id("SiteTree", $this->ID); - $clone->AssignedToID = 0; - $clone->RequestedByID = 0; $clone->Status = "Published"; $clone->writeWithoutVersion(); } @@ -1391,11 +1385,9 @@ class SiteTree extends DataObject { * Changing the condition from empty($this->ID) to * !$this->ID && !$this->record['ID'] fixed this. */ - if(empty($this->ID)) - return true; + if(empty($this->ID)) return true; - if(is_numeric($this->ID)) - return false; + if(is_numeric($this->ID)) return false; return stripos($this->ID, 'new') === 0; } diff --git a/core/model/VirtualPage.php b/core/model/VirtualPage.php index 9f4073e83..c3cbc2d66 100755 --- a/core/model/VirtualPage.php +++ b/core/model/VirtualPage.php @@ -28,8 +28,6 @@ class VirtualPage extends Page { $nonVirtualFields = array( "SecurityTypeID", "OwnerID", - "AssignedToID", - "RequestedByID", "URLSegment", "Sort", "Status",