mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-21 12:54:26 +02:00
monitoring: Fix setting a resource on a backend
The resources were indexed by integers instead of the resource names.
This commit is contained in:
parent
74bd9b319d
commit
531448eee4
@ -46,7 +46,7 @@ class BackendConfigForm extends ConfigForm
|
||||
$resources = array();
|
||||
foreach ($resourceConfig as $name => $resource) {
|
||||
if ($resource->type === 'db' || $resource->type === 'statusdat' || $resource->type === 'livestatus') {
|
||||
$resources[$resource->type === 'db' ? 'ido' : strtolower($resource->type)][] = $name;
|
||||
$resources[$resource->type === 'db' ? 'ido' : strtolower($resource->type)][$name] = $name;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user