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…
Reference in New Issue