mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Fix put static route destination in config change description
When enabling or disabling a route by using the enable/disable button on the Routes page, the destination network was not being put in the config change description, although the code intended it to be there. This fixes it.
This commit is contained in:
parent
9195a83780
commit
6135a11fd9
@ -144,11 +144,11 @@ if (isset($_POST['del_x'])) {
|
||||
if ($a_routes[$_GET['id']]) {
|
||||
if (isset($a_routes[$_GET['id']]['disabled'])) {
|
||||
unset($a_routes[$_GET['id']]['disabled']);
|
||||
$changedesc = $changedesc_prefix . gettext("enabled route to") . " " . $a_routes[$id]['network'];
|
||||
$changedesc = $changedesc_prefix . gettext("enabled route to") . " " . $a_routes[$_GET['id']]['network'];
|
||||
} else {
|
||||
delete_static_route($_GET['id']);
|
||||
$a_routes[$_GET['id']]['disabled'] = true;
|
||||
$changedesc = $changedesc_prefix . gettext("disabled route to") . " " . $a_routes[$id]['network'];
|
||||
$changedesc = $changedesc_prefix . gettext("disabled route to") . " " . $a_routes[$_GET['id']]['network'];
|
||||
}
|
||||
|
||||
if (write_config($changedesc)) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user