Skip to content

Commit

Permalink
[BUGFIX] Check record in Label hook #513
Browse files Browse the repository at this point in the history
  • Loading branch information
georgringer committed May 1, 2024
1 parent 0ae85fb commit 95d127a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Classes/Hooks/Tca/Label.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,11 @@ public function getAddressLabel(array &$params): void
$row = $params['row'];
}

// record might be in deleting process
if (!$row) {
return;
}

$configuration = $this->getConfiguration((int) $row['pid']);
if (!$configuration) {
return;
Expand Down

0 comments on commit 95d127a

Please sign in to comment.