From 36a751adb8328bf56760fde80c62b7ab894a3605 Mon Sep 17 00:00:00 2001 From: remfalc Date: Mon, 23 Feb 2015 16:37:49 -0500 Subject: [PATCH] Update DB-Func.php To fix the bug #5990 which in my opinion is a Blocker as it is not possible to save changes on a service template. --- www/include/configuration/configObject/service/DB-Func.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/include/configuration/configObject/service/DB-Func.php b/www/include/configuration/configObject/service/DB-Func.php index 4368c64c639..3e7b084c14a 100644 --- a/www/include/configuration/configObject/service/DB-Func.php +++ b/www/include/configuration/configObject/service/DB-Func.php @@ -1181,7 +1181,7 @@ function updateService($service_id = null, $from_MC = false, $params = array()) isset($ret["service_notifications_enabled"]["service_notifications_enabled"]) && $ret["service_notifications_enabled"]["service_notifications_enabled"] != 2 ? $rq .= "'".$ret["service_notifications_enabled"]["service_notifications_enabled"]."', " : $rq .= "'2', "; $rq .= "service_inherit_contacts_from_host = "; - isset($ret["service_inherit_contacts_from_host"]["service_inherit_contacts_from_host"]) && $ret["service_inherit_contacts_from_host"]["service_inherit_contacts_from_host"] != NULL ? $rq .= "'".$ret["service_inherit_contacts_from_host"]["service_inherit_contacts_from_host"]."', " : $rq .= "'NULL', "; + isset($ret["service_inherit_contacts_from_host"]["service_inherit_contacts_from_host"]) && $ret["service_inherit_contacts_from_host"]["service_inherit_contacts_from_host"] != NULL ? $rq .= "'".$ret["service_inherit_contacts_from_host"]["service_inherit_contacts_from_host"]."', " : $rq .= "NULL, "; $rq.= "contact_additive_inheritance = "; $rq .= (isset($ret['contact_additive_inheritance']) ? 1 : 0) . ', ';