// Fixed KPI with 0 value

This commit is contained in:
Damien Metzger
2013-10-04 17:28:03 +02:00
parent 5564b342f4
commit 337725bb86
@@ -45,9 +45,9 @@
success: function(jsonData){ success: function(jsonData){
if (!jsonData.has_errors) if (!jsonData.has_errors)
{ {
if (jsonData.value) if (jsonData.value != undefined)
$('#{$id|addslashes} .value').html(jsonData.value); $('#{$id|addslashes} .value').html(jsonData.value);
if (jsonData.data) if (jsonData.data != undefined)
{ {
$("#{$id|addslashes} .boxchart svg").remove(); $("#{$id|addslashes} .boxchart svg").remove();
set_d3_{$id|str_replace:'-':'_'|addslashes}(jsonData.data); set_d3_{$id|str_replace:'-':'_'|addslashes}(jsonData.data);