Skip to content
Snippets Groups Projects
Commit 51071380 authored by Matthias Adrowski's avatar Matthias Adrowski
Browse files

[TASK] Add more fields to News Records to skip missing keys

parent 35f7dcdb
No related branches found
No related tags found
1 merge request!38Feature upgrade to typo3 11
......@@ -154,7 +154,7 @@ class BackendController extends ActionController {
$showNewsList = FALSE;
if (
($this->pageUid && $this->pageUid === $this->rootPageUid) ||
(int) $this->pageInfo['doktype'] === BackendNewsUtility::CATEGORY_DOKTYPE
(isset($this->pageInfo['doktype']) && (int) $this->pageInfo['doktype'] === BackendNewsUtility::CATEGORY_DOKTYPE)
) {
/** @var BackendUserAuthentication $backendUser */
$backendUser = $GLOBALS['BE_USER'];
......
......@@ -369,6 +369,12 @@ class BackendNewsUtility {
'p.hidden',
'p.sorting',
'p.doktype',
'p.nav_hide',
'p.t3ver_state',
'p.starttime',
'p.endtime',
'p.fe_group',
'p.l10n_parent',
'p.title'
)->from('pages', 'p')
->where(
......
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