Skip to content

Commit

Permalink
IcingaObject: resolve related properties when...
Browse files Browse the repository at this point in the history
...telling an object to be "unmodified"

fixes #2559
  • Loading branch information
Thomas-Gelf committed Jul 12, 2022
1 parent d139196 commit 922b193
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions library/Director/Objects/IcingaObject.php
Original file line number Diff line number Diff line change
Expand Up @@ -1536,6 +1536,8 @@ public function setBeingLoadedFromDb()
foreach ($this->loadedMultiRelations as $multiRelation) {
$multiRelation->setBeingLoadedFromDb();
}
// This might trigger DB requests and 404's:
$this->resolveUnresolvedRelatedProperties();

parent::setBeingLoadedFromDb();
}
Expand Down

0 comments on commit 922b193

Please sign in to comment.