|
@ -75,10 +75,11 @@ const AssembleModalObject = (response, name) => { |
|
|
labels: [], |
|
|
labels: [], |
|
|
}; |
|
|
}; |
|
|
|
|
|
|
|
|
if (JSON.parse(response)) { |
|
|
|
|
|
|
|
|
if (JSON.parse(response).array_to_json) { |
|
|
const r = JSON.parse(response).array_to_json; |
|
|
const r = JSON.parse(response).array_to_json; |
|
|
|
|
|
console.log(response); |
|
|
|
|
|
|
|
|
user = r[0].formsanswersuserinformer; |
|
|
|
|
|
|
|
|
//(waiting for issue #16) user = r[0].formsanswersuserinformer;
|
|
|
|
|
|
|
|
|
if (name == "automaticPluviometer") { |
|
|
if (name == "automaticPluviometer") { |
|
|
(situation = "PLUVIÔMETRO"), |
|
|
(situation = "PLUVIÔMETRO"), |
|
@ -101,6 +102,7 @@ const AssembleModalObject = (response, name) => { |
|
|
}); |
|
|
}); |
|
|
} else { |
|
|
} else { |
|
|
if (r[0].array_to_json) { |
|
|
if (r[0].array_to_json) { |
|
|
|
|
|
user = r[0].formsanswersuserinformer; |
|
|
r[0].array_to_json.forEach(function (f) { |
|
|
r[0].array_to_json.forEach(function (f) { |
|
|
if (f.fieldname == "situation") { |
|
|
if (f.fieldname == "situation") { |
|
|
situation = f.fieldsanswersvalue; |
|
|
situation = f.fieldsanswersvalue; |
|
|