From e00758ade6a0b9885891108acd7f1eb5c381b9a1 Mon Sep 17 00:00:00 2001 From: Ad Schellevis Date: Sun, 8 Nov 2020 19:37:58 +0100 Subject: [PATCH] IDS: bugfix previous for for https://github.com/opnsense/core/issues/4445 --- src/opnsense/mvc/app/views/OPNsense/IDS/policy.volt | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/opnsense/mvc/app/views/OPNsense/IDS/policy.volt b/src/opnsense/mvc/app/views/OPNsense/IDS/policy.volt index f3358a189..d5e5fa86e 100644 --- a/src/opnsense/mvc/app/views/OPNsense/IDS/policy.volt +++ b/src/opnsense/mvc/app/views/OPNsense/IDS/policy.volt @@ -60,11 +60,14 @@ POSSIBILITY OF SUCH DAMAGE. select_options[this_section] = []; prev_section = this_section; } - let option = $(""; + } else { + option = ""; } - select_options[this_section].push(option.html()); + + select_options[this_section].push(option); } Object.keys(select_options).forEach(function(target){ $("#policy_content_" + target).append(select_options[target]);