summaryrefslogtreecommitdiffstats
path: root/usr/local/www/system_routes_edit.php
diff options
context:
space:
mode:
authorErik Fonnesbeck <efonnes@gmail.com>2010-03-10 19:26:08 -0700
committerErik Fonnesbeck <efonnes@gmail.com>2010-03-10 19:31:56 -0700
commit0e3aa71cd00836a3621ca68cb7e060b0d07e1327 (patch)
tree7651ebd517f34634dbfff6a25c2886792e9f2204 /usr/local/www/system_routes_edit.php
parenteb20f3c51e41cb65885589bbb229860ed069f78f (diff)
downloadpfsense-0e3aa71cd00836a3621ca68cb7e060b0d07e1327.zip
pfsense-0e3aa71cd00836a3621ca68cb7e060b0d07e1327.tar.gz
Fix sorting issues that were introduced in an old commit, resulting in the incorrect item sometimes being shown when clicking edit buttons.
Diffstat (limited to 'usr/local/www/system_routes_edit.php')
-rwxr-xr-xusr/local/www/system_routes_edit.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/usr/local/www/system_routes_edit.php b/usr/local/www/system_routes_edit.php
index 4e4a628..434bbbc 100755
--- a/usr/local/www/system_routes_edit.php
+++ b/usr/local/www/system_routes_edit.php
@@ -60,7 +60,6 @@ if (!is_array($config['staticroutes']['route']))
if (!is_array($config['gateways']['gateway_item']))
$config['gateways']['gateway_item'] = array();
-staticroutes_sort();
$a_routes = &$config['staticroutes']['route'];
$a_gateways = &$config['gateways']['gateway_item'];
@@ -128,11 +127,11 @@ if ($_POST) {
$route['gateway'] = $_POST['gateway'];
$route['descr'] = $_POST['descr'];
- staticroutes_sort();
if (isset($id) && $a_routes[$id])
$a_routes[$id] = $route;
else
$a_routes[] = $route;
+ staticroutes_sort();
mark_subsystem_dirty('staticroutes');
OpenPOWER on IntegriCloud