From c58e6b27383b3329a1bb7d5ecd721319d3eb82fe Mon Sep 17 00:00:00 2001 From: m-lopez-f Date: Tue, 22 Dec 2015 12:57:09 +0100 Subject: [PATCH] Fixed problems with period in visual console. Tiquet: #2672 (cherry picked from commit 3b5b7f53131efb3072bdbd1b70d8709036c87b99) --- .../godmode/reporting/visual_console_builder.editor.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandora_console/godmode/reporting/visual_console_builder.editor.js b/pandora_console/godmode/reporting/visual_console_builder.editor.js index 2e9b7c7bb3..588db64b7f 100755 --- a/pandora_console/godmode/reporting/visual_console_builder.editor.js +++ b/pandora_console/godmode/reporting/visual_console_builder.editor.js @@ -273,7 +273,7 @@ function readFields() { values['module'] = $("select[name=module]").val(); values['process_simple_value'] = $("select[name=process_value]").val(); values['background'] = $("#background_image").val(); - values['period'] = $("#hidden-period").val(); + values['period'] = undefined != $("#hidden-period").val() ? $("#hidden-period").val() : $("#period").val(); values['width'] = $("input[name=width]").val(); values['height'] = $("input[name=height]").val(); values['parent'] = $("select[name=parent]").val();