From 2f4242854f008e23a0b2df5ea8c514abf646c41a Mon Sep 17 00:00:00 2001 From: Alexander Zobnin Date: Sun, 24 Jan 2016 19:49:46 +0300 Subject: [PATCH] Fixed items search (no items returned when item name selected from typeahead). --- plugins/datasource-zabbix/queryProcessor.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/datasource-zabbix/queryProcessor.js b/plugins/datasource-zabbix/queryProcessor.js index 396919f..20e14fb 100644 --- a/plugins/datasource-zabbix/queryProcessor.js +++ b/plugins/datasource-zabbix/queryProcessor.js @@ -113,7 +113,7 @@ function (angular, _, utils) { return []; } } else { - items = _.filter(items, {'name': hostFilter}); + items = _.filter(items, {'name': itemFilter}); if (!items.length) { // No items finded return [];