Merge branch 'ent-5132-Generacion-de-imagenes-en-PDFs-2' into 'develop'

Fix gauge pdf reports

See merge request artica/pandorafms!2958
This commit is contained in:
Daniel Rodriguez 2019-12-13 11:28:30 +01:00
commit 350dbaf832
2 changed files with 4 additions and 4 deletions

View File

@ -1169,7 +1169,7 @@ function createGauges(data, width, height, font_size, no_data_image, font) {
maxinum,
valor;
for (key in data) {
for (var key in data) {
nombre = data[key].gauge;
label = data[key].label;
@ -1189,8 +1189,8 @@ function createGauges(data, width, height, font_size, no_data_image, font) {
mininum = round_with_decimals(parseFloat(data[key].min));
maxinum = round_with_decimals(parseFloat(data[key].max));
critical_inverse = parseInt(data[key].critical_inverse);
warning_inverse = parseInt(data[key].warning_inverse);
var critical_inverse = parseInt(data[key].critical_inverse);
var warning_inverse = parseInt(data[key].warning_inverse);
valor = round_with_decimals(data[key].value);

View File

@ -1763,7 +1763,7 @@ function round_with_decimals(value, multiplier) {
if (typeof multiplier === "undefined") multiplier = 1;
// Return non numeric types without modification
if (typeof value !== "number" || Number.isNaN(value)) {
if (typeof value !== "number" || isNaN(value)) {
return value;
}