Skip to content

Commit

Permalink
fix: Check records are actually related to an Operating Centre before…
Browse files Browse the repository at this point in the history
… accesing that property. (#347)
  • Loading branch information
fibble authored Sep 23, 2024
1 parent c1bca49 commit 822ce06
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/api/module/Api/src/Entity/Licence/Licence.php
Original file line number Diff line number Diff line change
Expand Up @@ -570,7 +570,7 @@ public function getGroupedConditionsUndertakings()
'notes' => $cu->getNotes(),
'createdOn' => $cu->getCreatedOn(true)
];
} else {
} elseif ($cu->getOperatingCentre() !== null && $cu->getOperatingCentre()->getId() !== null) {
$ocConditionsUndertakings[$cu->getOperatingCentre()->getId()][$conditionType][] = [
'notes' => $cu->getNotes(),
'address' => [
Expand Down

0 comments on commit 822ce06

Please sign in to comment.