From be309e42cb28b65d5ec053382ec6d80edd254796 Mon Sep 17 00:00:00 2001
From: loiclau <loic.lau@gmail.com>
Date: Fri, 10 Nov 2017 17:48:27 +0100
Subject: [PATCH] fix(host configuration) add massive change contact/cg update
 mode (#5878)

* add massive change contact/cg update mode for host

* add critical tag for test

* fix duplicate if
---
 features/MassiveChangeHosts.feature                        | 1 +
 www/include/configuration/configObject/host/formHost.ihtml | 6 +++++-
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/features/MassiveChangeHosts.feature b/features/MassiveChangeHosts.feature
index 145b385d4a..60763c674e 100644
--- a/features/MassiveChangeHosts.feature
+++ b/features/MassiveChangeHosts.feature
@@ -7,6 +7,7 @@ Feature: Massive Change on Hosts
         Given I am logged in a Centreon server
         And several hosts have been created with mandatory properties
 
+    @critical
     Scenario: Configure by massive change several hosts with same properties
         When I have applied Massive Change operation to several hosts
         Then all selected hosts are updated with the same values
diff --git a/www/include/configuration/configObject/host/formHost.ihtml b/www/include/configuration/configObject/host/formHost.ihtml
index bc99eb1d17..a8fa58a095 100644
--- a/www/include/configuration/configObject/host/formHost.ihtml
+++ b/www/include/configuration/configObject/host/formHost.ihtml
@@ -160,7 +160,11 @@
 		<tr class="list_lvl_1">
 		    <td class="ListColLvl1_name" colspan="2"><h4>{t}Notification receivers{/t}</h4></td>
 		</tr>
-        {if $o == "mc"}
+		{if $o == "mc"}
+		<tr class="list_two">
+			<td class="FormRowField"><img class="helpTooltip" name="mc_update"> {$form.mc_mod_hcg.label}</td>
+			<td class="FormRowValue">{$form.mc_mod_hcg.html}</td>
+		</tr>
         <tr class="list_one">
 			<td class="FormRowField"><img class="helpTooltip" name="contact_additive_inheritance"> {$form.mc_contact_additive_inheritance.label}</td>
 			<td class="FormRowValue">{$form.mc_contact_additive_inheritance.html}</td>
-- 
GitLab