From a2aba45eb768f7f2ae3e6ce73208e1f8c85b9f33 Mon Sep 17 00:00:00 2001 From: Ad Schellevis Date: Mon, 15 Apr 2019 18:27:25 +0200 Subject: [PATCH] Routing, gateway_groups, don't hide gateways on edit, which keeps presentation on new/edit equal. Previously you could have a group, containing an item that didn't exist anymore (interface removed), in which case you needed to remove the group to be able to edit it. related to https://github.com/opnsense/core/issues/2279 --- src/www/system_gateway_groups_edit.php | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/src/www/system_gateway_groups_edit.php b/src/www/system_gateway_groups_edit.php index 22f267ee9..9150c7b76 100644 --- a/src/www/system_gateway_groups_edit.php +++ b/src/www/system_gateway_groups_edit.php @@ -195,15 +195,7 @@ $( document ).ready(function() { $gateway): - if (!empty($pconfig['item'])) { - $af = explode("|", $pconfig['item'][0]); - $family = $a_gateways[$af[0]]['ipprotocol']; - if ($gateway['ipprotocol'] != $family) { - continue; - } - } -?> + foreach ($a_gateways as $gwname => $gateway):?>