diff --git a/core/model/modx/processors/security/user/getrecentlyeditedresources.class.php b/core/model/modx/processors/security/user/getrecentlyeditedresources.class.php index 77818daae98..2c29b95ded5 100644 --- a/core/model/modx/processors/security/user/getrecentlyeditedresources.class.php +++ b/core/model/modx/processors/security/user/getrecentlyeditedresources.class.php @@ -91,7 +91,7 @@ public function prepareRow(xPDOObject $object) return []; } - $resourceArray = $object->get(array('id','pagetitle','description','published','deleted','context_key')); + $resourceArray = $resource->get(array('id','pagetitle','description','published','deleted','context_key', 'editedon')); $resourceArray['pagetitle'] = htmlspecialchars($resourceArray['pagetitle'], ENT_QUOTES, $this->modx->getOption('modx_charset', null, 'UTF-8')); $row = array_merge($row, $resourceArray); @@ -114,7 +114,7 @@ public function prepareRow(xPDOObject $object) 'text' => $this->modx->lexicon('resource_overview'), 'params' => [ 'a' => 'resource/data', - 'id' => $object->get('id'), + 'id' => $resource->get('id'), 'type' => 'view', ], ]; @@ -123,7 +123,7 @@ public function prepareRow(xPDOObject $object) 'text' => $this->modx->lexicon('resource_edit'), 'params' => [ 'a' => 'resource/update', - 'id' => $object->get('id'), + 'id' => $resource->get('id'), 'type' => 'edit', ], ]; @@ -132,7 +132,7 @@ public function prepareRow(xPDOObject $object) $row['menu'][] = [ 'text' => $this->modx->lexicon('resource_preview'), 'params' => [ - 'url' => $this->modx->makeUrl($object->get('id'), null, '', 'full'), + 'url' => $this->modx->makeUrl($resource->get('id'), null, '', 'full'), 'type' => 'open', ], 'handler' => 'this.preview', @@ -142,4 +142,4 @@ public function prepareRow(xPDOObject $object) } } -return 'modUserGetRecentlyEditedResourcesProcessor'; +return 'modUserGetRecentlyEditedResourcesProcessor'; \ No newline at end of file