Skip to content
Snippets Groups Projects
Commit a61445dd authored by Paul Ilea's avatar Paul Ilea
Browse files

[BUGFIX] Fix Error for editor users on root page (uid = 0)

parent 40ff02c0
No related branches found
No related tags found
No related merge requests found
......@@ -227,6 +227,9 @@ class MailController extends ActionController {
}
$this->docHeaderComponent = GeneralUtility::makeInstance(DocHeaderComponent::class);
if ($pageInfo === FALSE) {
$pageInfo = ['uid' => $pageUid];
}
$this->docHeaderComponent->setMetaInformation($pageInfo);
BackendService::makeButtons($this->docHeaderComponent, $this->request);
......
......@@ -149,7 +149,9 @@ class QueueController extends ActionController {
$this->view->assign('pages', BackendService::getPages());
}
$this->docHeaderComponent = GeneralUtility::makeInstance(DocHeaderComponent::class);
if ($pageInfo === FALSE) {
$pageInfo = ['uid' => $pageUid];
}
$this->docHeaderComponent->setMetaInformation($pageInfo);
$this->view->assign('docHeader', $this->docHeaderComponent->docHeaderContent());
BackendService::makeButtons($this->docHeaderComponent, $this->request);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment