From 974355f101b4049bd2709c5f48bfbfabb28c1dd5 Mon Sep 17 00:00:00 2001 From: loiclau <loic.lau@gmail.com> Date: Thu, 15 Mar 2018 11:06:59 +0100 Subject: [PATCH] fix(clapi) export contact with contact group (#6131) --- www/class/centreon-clapi/centreonContactGroup.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/class/centreon-clapi/centreonContactGroup.class.php b/www/class/centreon-clapi/centreonContactGroup.class.php index 5ce8e92cac..2203dac0d8 100644 --- a/www/class/centreon-clapi/centreonContactGroup.class.php +++ b/www/class/centreon-clapi/centreonContactGroup.class.php @@ -234,7 +234,7 @@ class CentreonContactGroup extends CentreonObject 'AND' ); foreach ($elements as $element) { - $this->api->export_filter('CONTACT', $element['contact_id'], $element[$cgFieldName]); + $this->api->export_filter('CONTACT', $element['contact_id'], $element['contact_alias']); echo $this->action . $this->delim . "addcontact" . $this->delim . $element[$cgFieldName] . $this->delim . $element[$cFieldName] . $this->delim . $element['contact_alias'] . "\n"; -- GitLab