From f5aaa9781657aa4fd84fa3656217475e502ac74f Mon Sep 17 00:00:00 2001 From: Kevin Duret Date: Wed, 24 Oct 2018 16:12:43 +0200 Subject: [PATCH] fix(form): fix host categories creation and update (#6901) --- .../configuration/configObject/host_categories/DB-Func.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/include/configuration/configObject/host_categories/DB-Func.php b/www/include/configuration/configObject/host_categories/DB-Func.php index 9070fa8a07c..6c9de4460d2 100644 --- a/www/include/configuration/configObject/host_categories/DB-Func.php +++ b/www/include/configuration/configObject/host_categories/DB-Func.php @@ -345,7 +345,7 @@ function updateHostCategoriesHosts($hc_id, $ret = array()) // get host template relations $linkedHostTemplates = isset($ret["hc_hostsTemplate"]) ? $ret["hc_hostsTemplate"] : - $form->getSubmitValue("hc_hostsTemplate"); + CentreonUtils::mergeWithInitialValues($form, 'hc_hostsTemplate'); // merge host and host template relations $linkedObjects = array_merge($linkedHosts, $linkedHostTemplates);