summaryrefslogtreecommitdiffstats
path: root/usr/local/www/services_dhcp_edit.php
diff options
context:
space:
mode:
authorErik Fonnesbeck <efonnes@gmail.com>2010-03-10 17:22:26 -0700
committerErik Fonnesbeck <efonnes@gmail.com>2010-03-10 17:25:30 -0700
commitbb9689bd9dbde822b9a24e52175dff6b7fb38a97 (patch)
tree10f41510e3a5ade52a35e0337b7b118951a6a8b3 /usr/local/www/services_dhcp_edit.php
parent20252ff529728b3b9741923a268c45af006e1d86 (diff)
downloadpfsense-bb9689bd9dbde822b9a24e52175dff6b7fb38a97.zip
pfsense-bb9689bd9dbde822b9a24e52175dff6b7fb38a97.tar.gz
Ticket #343. Move sorting of DHCP static mappings to after the item is set. Previous behavior caused the wrong entry to get overwritten.
Diffstat (limited to 'usr/local/www/services_dhcp_edit.php')
-rwxr-xr-xusr/local/www/services_dhcp_edit.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/local/www/services_dhcp_edit.php b/usr/local/www/services_dhcp_edit.php
index ba5d85e..d44fb9b 100755
--- a/usr/local/www/services_dhcp_edit.php
+++ b/usr/local/www/services_dhcp_edit.php
@@ -157,11 +157,11 @@ if ($_POST) {
$mapent['hostname'] = $_POST['hostname'];
$mapent['descr'] = $_POST['descr'];
- staticmaps_sort($if);
if (isset($id) && $a_maps[$id])
$a_maps[$id] = $mapent;
else
$a_maps[] = $mapent;
+ staticmaps_sort($if);
write_config();
OpenPOWER on IntegriCloud