Skip to content

Commit

Permalink
IcingaArguments: be unmodified when loaded from db
Browse files Browse the repository at this point in the history
fixes #2660
  • Loading branch information
Thomas-Gelf committed Aug 21, 2023
1 parent 907d93e commit 8896e54
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions doc/82-Changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ This version hasn't been released yet
* FEATURE: CIDR notation (network ranges) is supported in such filters (#2757)
* FIX: synchronizing Service (and -Set) Templates has been fixed (#2745, #2217)

### REST API
* FIX: Commands give 304 w/o ghost changes for same properties (#2660)

### Permissions and Restrictions
* FIX: monitoring-related permission checks have been refactored (#2712)
* FIX: Hostgroup-Filters have not been applied to Overview tables (#2775)
Expand Down
4 changes: 4 additions & 0 deletions library/Director/Objects/IcingaArguments.php
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,7 @@ protected function loadFromDb()
$this->arguments = IcingaCommandArgument::loadAll($connection, $query, 'argument_name');
$this->cloneStored();
$this->refreshIndex();
$this->modified = false;

return $this;
}
Expand Down Expand Up @@ -360,6 +361,7 @@ public function setBeingLoadedFromDb()
}
$this->refreshIndex();
$this->cloneStored();
$this->modified = false;
}

/**
Expand Down Expand Up @@ -393,7 +395,9 @@ public function store()
unset($this->arguments[$key]);
}

$this->refreshIndex();
$this->cloneStored();
$this->modified = false;

return $this;
}
Expand Down

0 comments on commit 8896e54

Please sign in to comment.