From 531448eee40d3753f3d95871beb8d230ac56f61d Mon Sep 17 00:00:00 2001 From: Eric Lippmann Date: Wed, 1 Oct 2014 14:17:29 +0200 Subject: [PATCH] monitoring: Fix setting a resource on a backend The resources were indexed by integers instead of the resource names. --- .../monitoring/application/forms/Config/BackendConfigForm.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/monitoring/application/forms/Config/BackendConfigForm.php b/modules/monitoring/application/forms/Config/BackendConfigForm.php index e2cdf210c..fa05cf7e3 100644 --- a/modules/monitoring/application/forms/Config/BackendConfigForm.php +++ b/modules/monitoring/application/forms/Config/BackendConfigForm.php @@ -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; } }