From a657b0b7cd0508807ebf4bd0a6a62c21a5292046 Mon Sep 17 00:00:00 2001 From: Alexander Zobnin Date: Mon, 20 Jul 2015 20:26:36 +0300 Subject: [PATCH] Fixed #45 - Item list don't works properly when All applications selected. --- zabbix/zabbixAPIWrapper.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zabbix/zabbixAPIWrapper.js b/zabbix/zabbixAPIWrapper.js index 1e7d23e..45a14d1 100644 --- a/zabbix/zabbixAPIWrapper.js +++ b/zabbix/zabbixAPIWrapper.js @@ -421,7 +421,7 @@ function (angular, _) { promises.push(this.getGroupByName(groups)); } // Get applicationids from names - if (apps) { + if (apps && apps[0] !== '*') { promises.push(this.getAppByName(apps)); } @@ -441,7 +441,7 @@ function (angular, _) { return object.hostid; }), 'hostid'); } - if (apps) { + if (apps && apps[0] !== '*') { applicationids = _.map(_.filter(results, function (object) { return object.applicationid; }), 'applicationid');