From 01543474a9ceb0ca8b5d79a11b0011dbcab3f527 Mon Sep 17 00:00:00 2001 From: Ad Schellevis Date: Thu, 5 Mar 2020 17:22:42 +0100 Subject: [PATCH] os-firewall: fix open with uuid (https://github.com/opnsense/plugins/issues/1720) --- .../src/opnsense/mvc/app/views/OPNsense/Firewall/filter.volt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/firewall/src/opnsense/mvc/app/views/OPNsense/Firewall/filter.volt b/net/firewall/src/opnsense/mvc/app/views/OPNsense/Firewall/filter.volt index 5976c1cf2..213d54746 100644 --- a/net/firewall/src/opnsense/mvc/app/views/OPNsense/Firewall/filter.volt +++ b/net/firewall/src/opnsense/mvc/app/views/OPNsense/Firewall/filter.volt @@ -12,7 +12,7 @@ // open edit dialog when opened with a uuid reference if (window.location.hash !== "" && window.location.hash.split("-").length >= 4) { grid.on('loaded.rs.jquery.bootgrid', function(){ - $(".command-edit:eq(0)").clone(true).data('row-id', window.location.hash).click(); + $(".command-edit:eq(0)").clone(true).data('row-id', window.location.hash.substr(1)).click(); }); } });