From bb9689bd9dbde822b9a24e52175dff6b7fb38a97 Mon Sep 17 00:00:00 2001 From: Erik Fonnesbeck Date: Wed, 10 Mar 2010 17:22:26 -0700 Subject: Ticket #343. Move sorting of DHCP static mappings to after the item is set. Previous behavior caused the wrong entry to get overwritten. --- usr/local/www/services_dhcp_edit.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'usr/local') 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(); -- cgit v1.1