From 936c19310e9b03748c6900684fb3daebed9bf01e Mon Sep 17 00:00:00 2001 From: Alexander Zobnin Date: Fri, 29 May 2015 19:33:47 +0300 Subject: [PATCH] Fix getting item alias from name for non-templated items. --- zabbix/queryCtrl.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zabbix/queryCtrl.js b/zabbix/queryCtrl.js index a3622a9..f1c37fd 100644 --- a/zabbix/queryCtrl.js +++ b/zabbix/queryCtrl.js @@ -43,7 +43,7 @@ function (angular, _) { // Take alias from item name by default function setItemAlias() { if (!$scope.target.alias && $scope.target.item) { - $scope.target.alias = $scope.target.item.expandedName; + $scope.target.alias = expandItemName($scope.target.item); } };