Fix agent modules selector on meta for dashboards

This commit is contained in:
Calvo 2022-02-21 16:38:09 +01:00
parent bacd0a616f
commit b67683adff
1 changed files with 4 additions and 0 deletions

View File

@ -232,11 +232,15 @@ function fmModuleChange(uniqId, isMeta) {
selection: showCommonModules selection: showCommonModules
}, },
function(data) { function(data) {
debugger;
$("#filtered-module-modules-" + uniqId).html(""); $("#filtered-module-modules-" + uniqId).html("");
if (data) { if (data) {
jQuery.each(data, function(id, value) { jQuery.each(data, function(id, value) {
var option = $("<option></option>"); var option = $("<option></option>");
if (isMeta === 1) { if (isMeta === 1) {
if (value["id_node"] == null || value["id_node"] == "") {
option.attr("value", id).html(value);
}
option option
.attr( .attr(
"value", "value",