Index: trunk/CHANGELOG
===================================================================
--- trunk/CHANGELOG	(revision 399)
+++ trunk/CHANGELOG	(revision 400)
@@ -12,6 +12,7 @@
 
 ------------------------------------- 2.6.5 -------------------------------------
 24-Dez-2006 Matthias Gallas
+#	Fixed root_parent doesn't get updated when moving item in menu (#305)
 !	Changed all copyright notices to include now 2007
 23-Dez-2006 Matthias Gallas
 #	Fixed IE allows to set a page as parent of itself (#320)
Index: trunk/wb/framework/functions.php
===================================================================
--- trunk/wb/framework/functions.php	(revision 399)
+++ trunk/wb/framework/functions.php	(revision 400)
@@ -267,7 +267,7 @@
 	if($level == 1) {
 		return $parent;
 	} elseif($parent == 0) {
-		return 0;
+		return $page_id;
 	} else {
 		// Figure out what the root parents id is
 		$parent_ids = array_reverse(get_parent_ids($page_id));
