diff --git a/pandora_console/godmode/reporting/visual_console_builder.editor.js b/pandora_console/godmode/reporting/visual_console_builder.editor.js index 8d92642f52..df7f08fde0 100755 --- a/pandora_console/godmode/reporting/visual_console_builder.editor.js +++ b/pandora_console/godmode/reporting/visual_console_builder.editor.js @@ -1544,13 +1544,14 @@ function loadFieldsFromDB(item) { if (key == 'linked_layout_status_type') $("select[name=linked_map_status_calculation_type]").val(val).change(); if (key == 'id_layout_linked') { - if (data['linked_layout_node_id'] == null) { - $("select[name=map_linked]").val(val).change(); - } - else { - var $option = $("select[name=map_linked] > option[data-node-id=" + data['linked_layout_node_id'] + "][value=" + val + "]"); - if ($option.length === 0) $option = $("select[name=map_linked] > option[value=" + val + "]"); - $option.prop("selected", true).parent().change(); + if (val != 0) { + if (data['linked_layout_node_id'] == null) { + $("select[name=map_linked]").val(val).change(); + } else { + var $option = $("select[name=map_linked] > option[data-node-id=" + data['linked_layout_node_id'] + "][value=" + val + "]"); + if ($option.length === 0) $option = $("select[name=map_linked] > option[value=" + val + "]"); + $option.prop("selected", true).parent().change(); + } } } if (key == 'linked_layout_node_id')