--- racktables-test/inc/ajax-interface.php	2013-04-14 22:27:19.000000000 +0200
+++ racktables-prod/inc/ajax-interface.php	2013-04-30 13:59:03.501947591 +0200
@@ -151,15 +151,15 @@
 		$current_location_id = $m[1];
 		$selected_id = $locationlist[$current_location_id]['parent_id'];
 		echo $selected_id;
-		$options[0] = '-- NONE --';
-		foreach ($locationlist as $location_id => $locationinfo)
-			if (! in_array ($current_location_id, $locationinfo['trace']) && $current_location_id != $location_id)
-				$options[$location_id] = $locationinfo['name'];
+		echo "<option value=0>-- NONE --</option>";
 	}
-	foreach ($options as $location_id => $value)
-		echo "<option value='$location_id'" .
-			($location_id == $selected_id ? ' selected' : '') .
-			'>' . htmlspecialchars ($value) . '</option>';
+	foreach ($locationtree as $location)
+	{
+		echo "<option value=${location['id']} style=\"font-weight: bold\"  >${location['name']}</option>";
+		printLocationChildren($location,0,$current_location_id);
+	}
+
+
 }
 
 function verifyCodeAJAX()
