Skip to content

Commit d56ca2c

Browse files
authored
Enrich custom variable lists in monitoring and icingadb details (#2445)
resolves #2239 requires Icinga/icingaweb2#4614 or Icinga/icingadb-web#467
2 parents 2d48843 + dbacfa2 commit d56ca2c

File tree

4 files changed

+863
-1
lines changed

4 files changed

+863
-1
lines changed

library/Director/Objects/DirectorDatafield.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,8 @@ public function getCategory(): ?DirectorDatafieldCategory
7474
if ($this->category) {
7575
return $this->category;
7676
} elseif ($id = $this->get('category_id')) {
77-
return DirectorDatafieldCategory::loadWithAutoIncId($id, $this->getConnection());
77+
$this->category = DirectorDatafieldCategory::loadWithAutoIncId($id, $this->getConnection());
78+
return $this->category;
7879
} else {
7980
return null;
8081
}

0 commit comments

Comments
 (0)