From c48cbd3dc4b9e14a077e8177d0dc9bfdc9ddd553 Mon Sep 17 00:00:00 2001 From: Alexander Zobnin Date: Thu, 14 Jan 2016 20:56:24 +0300 Subject: [PATCH] Fixed #138 - Mapping value to text does't work in singlestat panel. --- plugins/datasource-zabbix/helperFunctions.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/datasource-zabbix/helperFunctions.js b/plugins/datasource-zabbix/helperFunctions.js index 69129c2..f1b84fd 100644 --- a/plugins/datasource-zabbix/helperFunctions.js +++ b/plugins/datasource-zabbix/helperFunctions.js @@ -130,7 +130,7 @@ function (angular, _) { this.handleSLAResponse = function (itservice, slaProperty, slaObject) { var targetSLA = slaObject[itservice.serviceid].sla[0]; if (slaProperty.property === 'status') { - var targetStatus = slaObject[itservice.serviceid].status; + var targetStatus = parseInt(slaObject[itservice.serviceid].status); return { target: itservice.name + ' ' + slaProperty.name, datapoints: [