diff options
author | Erik Fonnesbeck <efonnes@gmail.com> | 2010-03-10 17:22:26 -0700 |
---|---|---|
committer | Erik Fonnesbeck <efonnes@gmail.com> | 2010-03-10 17:25:30 -0700 |
commit | bb9689bd9dbde822b9a24e52175dff6b7fb38a97 (patch) | |
tree | 10f41510e3a5ade52a35e0337b7b118951a6a8b3 /usr/local | |
parent | 20252ff529728b3b9741923a268c45af006e1d86 (diff) | |
download | pfsense-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')
-rwxr-xr-x | usr/local/www/services_dhcp_edit.php | 2 |
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(); |