Skip to content

Commit

Permalink
Fix issue in recent refactorings (missing object attributes in JS)
Browse files Browse the repository at this point in the history
  • Loading branch information
LarsMichelsen committed Jul 11, 2023
1 parent 528120a commit bf7b5a2
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion share/server/core/classes/objects/NagVisObject.php
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,6 @@ public function setObjectInformation($obj) {
* Gets all necessary information of the object as array
*/
public function getObjectInformation() {
global $CORE;
$arr = Array();

// Need to remove some options which are not relevant
Expand Down
2 changes: 1 addition & 1 deletion share/server/core/classes/objects/NagVisStatefulObject.php
Original file line number Diff line number Diff line change
Expand Up @@ -834,7 +834,7 @@ public function getObjectInformation($bFetchChilds = true) {
if (!$bFetchChilds)
return $this->fetchObjectAsChild();

$arr = parent::getObjectConfiguration($bFetchChilds);
$arr = parent::getObjectInformation($bFetchChilds);

if ($this->type == 'host' || $this->type == 'service') {
$obj_attrs = array(
Expand Down

0 comments on commit bf7b5a2

Please sign in to comment.