Skip to content

Commit

Permalink
[BUGFIX] Check whether page has expected identifier
Browse files Browse the repository at this point in the history
  • Loading branch information
flossels committed Jul 27, 2021
1 parent 0b9e1df commit 792f45a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Classes/Hook/OverrideIconOverlayHook.php
Expand Up @@ -18,7 +18,7 @@ class OverrideIconOverlayHook
{
public function postOverlayPriorityLookup(string $table, array $row, array $status, string $iconName): string
{
if ($table === 'pages' && !empty($row)) {
if ($table === 'pages' && !empty($row) && strpos((string)$row['uid'], 'NEW') === false) {
// since tx_locate_regions is not included in the row array (PageTreeRepository is initialized with empty additionalFields)
// we need to get the necessary information on our own
$regions = $this->countRegions($table, $row);
Expand Down

0 comments on commit 792f45a

Please sign in to comment.