Skip to content

Commit

Permalink
[BUGFIX] Errormessage in typo3 errorlog when i switch to another page…
Browse files Browse the repository at this point in the history
… in ListView

not tested in 3d environment
  • Loading branch information
Bernd Fallert committed Aug 21, 2024
1 parent 548294c commit baa1ae6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Classes/ExpressionLanguage/DocumentTypeFunctionProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,11 @@ function($arguments, $cPid)
return 'object';
}

// It happens that $queryParams does not contain a key 'tx_dlf[id]'
if (!empty($queryParams['tx_dlf']['id'])) {
return $type;
}

// Load document with current plugin parameters.
$this->loadDocument($queryParams['tx_dlf'], $cPid);
if (!isset($this->document) || $this->document->getCurrentDocument() === null) {
Expand Down

0 comments on commit baa1ae6

Please sign in to comment.