mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-09-26 03:09:11 +02:00
IcingaObjectFieldForm: gracefully handle missing...
...field, as it might have been removed before refs #751
This commit is contained in:
parent
d323a77695
commit
1a6fbd5cd7
@ -62,8 +62,13 @@ class IcingaObjectFieldForm extends DirectorObjectForm
|
||||
foreach ($m[1] as $val) {
|
||||
if (array_key_exists($val, $blacklistedVars)) {
|
||||
$id = $blacklistedVars[$val];
|
||||
$suggestedFields[$id] = $existingFields[$id];
|
||||
unset($existingFields[$id]);
|
||||
|
||||
// Hint: if not set it might already have been
|
||||
// removed in this loop
|
||||
if (array_key_exists($id, $existingFields)) {
|
||||
$suggestedFields[$id] = $existingFields[$id];
|
||||
unset($existingFields[$id]);
|
||||
}
|
||||
} else {
|
||||
$argumentVars[$val] = $val;
|
||||
$argumentVarDescriptions[$val] = $arg->description;
|
||||
|
Loading…
x
Reference in New Issue
Block a user