From 6135a11fd9c433f9de495cfddf0d84ea97f73d89 Mon Sep 17 00:00:00 2001 From: Phil Davis Date: Sat, 4 Jul 2015 00:20:29 +0545 Subject: [PATCH] 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. --- usr/local/www/system_routes.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr/local/www/system_routes.php b/usr/local/www/system_routes.php index a00144436c..4d44557639 100644 --- a/usr/local/www/system_routes.php +++ b/usr/local/www/system_routes.php @@ -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)) {