Skip to content

Commit

Permalink
Implemented changes of pull request modxcms#14511
Browse files Browse the repository at this point in the history
  • Loading branch information
Igor Sukhinin committed Apr 5, 2019
1 parent e6c4938 commit ff07d2c
Showing 1 changed file with 5 additions and 5 deletions.
Expand Up @@ -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);
Expand All @@ -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',
],
];
Expand All @@ -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',
],
];
Expand All @@ -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',
Expand All @@ -142,4 +142,4 @@ public function prepareRow(xPDOObject $object)
}
}

return 'modUserGetRecentlyEditedResourcesProcessor';
return 'modUserGetRecentlyEditedResourcesProcessor';

0 comments on commit ff07d2c

Please sign in to comment.