mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-29 00:34:05 +02:00
IcingaArguments: Mark arguments for removal when setting empty
Without the fix arguments will remain untouched in DB, but appear to be removed in activity log. fixes #1829
This commit is contained in:
parent
fd27d25df3
commit
ef41022a73
@ -190,18 +190,8 @@ class IcingaArguments implements Iterator, Countable, IcingaConfigRenderer
|
||||
return $attrs;
|
||||
}
|
||||
|
||||
// TODO -> UNFINISHED!!!
|
||||
public function setArguments($arguments)
|
||||
{
|
||||
if (empty($arguments)) {
|
||||
if (count($this->arguments)) {
|
||||
$this->arguments = [];
|
||||
$this->modified = true;
|
||||
}
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
$arguments = (array) $arguments;
|
||||
|
||||
foreach ($arguments as $arg => $val) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user