From aa7252e06cebcbc5fbd52875e0de8abc207b5cf1 Mon Sep 17 00:00:00 2001
From: Guillaume28 <gbaldo@centreon.com>
Date: Mon, 5 Mar 2018 15:10:04 +0100
Subject: [PATCH] fix(HTPL): Export with filters(trap)

---
 www/class/centreon-clapi/centreonServiceTemplate.class.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/www/class/centreon-clapi/centreonServiceTemplate.class.php b/www/class/centreon-clapi/centreonServiceTemplate.class.php
index 85886591a3..124308b668 100644
--- a/www/class/centreon-clapi/centreonServiceTemplate.class.php
+++ b/www/class/centreon-clapi/centreonServiceTemplate.class.php
@@ -1025,7 +1025,7 @@ class CentreonServiceTemplate extends CentreonObject
             "AND"
         );
         foreach ($telements as $telement) {
-            $this->api->export_filter('TRAP', $element['traps_id'], $element['traps_name']);
+            $this->api->export_filter('TRAP', $telement['traps_id'], $telement['traps_name']);
             echo $this->action . $this->delim
                 . "addtrap" . $this->delim
                 . $telement['service_description'] . $this->delim
-- 
GitLab