mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-14 08:34:39 +00:00
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:
parent
e9cb9c0862
commit
a2aba45eb7
@ -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>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user