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

This commit is contained in:
Ad Schellevis 2019-04-15 18:27:25 +02:00
parent e9cb9c0862
commit a2aba45eb7

View File

@ -195,15 +195,7 @@ $( document ).ready(function() {
<td><?= gettext('Description') ?></td>
</tr>
<?php
foreach ($a_gateways as $gwname => $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):?>
<tr>
<td><strong><?=$gateway['name'];?></strong></td>
<td>