diff --git a/www/class/centreon-clapi/centreonServiceTemplate.class.php b/www/class/centreon-clapi/centreonServiceTemplate.class.php index 38388c12709..925fa8ffd5c 100644 --- a/www/class/centreon-clapi/centreonServiceTemplate.class.php +++ b/www/class/centreon-clapi/centreonServiceTemplate.class.php @@ -738,7 +738,7 @@ public function __call($name, $arg) $relationTable = array(); foreach ($relations as $rel) { if ($matches[2] == "contact") { - $tab = $obj->getIdByParameter("contact_name", array($rel)); + $tab = $obj->getIdByParameter("contact_alias", array($rel)); } else { $tab = $obj->getIdByParameter($obj->getUniqueLabelField(), array($rel)); } @@ -956,7 +956,7 @@ public function export($filters = null) $filters_contactRel['service_id'] = $filters['service_id']; } $elements = $contactRel->getMergedParameters( - array("contact_name", "contact_id"), + array("contact_alias", "contact_id"), array('service_description'), -1, 0, @@ -970,7 +970,7 @@ public function export($filters = null) echo $this->action . $this->delim . "addcontact" . $this->delim . $element['service_description'] . $this->delim - . $element['contact_name'] . "\n"; + . $element['contact_alias'] . "\n"; } // macros