Index: trunk/CHANGELOG
===================================================================
--- trunk/CHANGELOG	(revision 1007)
+++ trunk/CHANGELOG	(revision 1008)
@@ -12,6 +12,7 @@
 
 ------------------------------------- 2.8.0 -------------------------------------
 22-June-2009 Matthias Gallas
+#	fixed wrong position id when adding a new page
 -	removed obsolete code/modify.html
 22-June-2009 Dietrich Roland Pehlke
 #	Changes on module "code": add the section_id to the name of the textarea,
Index: trunk/wb/admin/pages/add.php
===================================================================
--- trunk/wb/admin/pages/add.php	(revision 1007)
+++ trunk/wb/admin/pages/add.php	(revision 1008)
@@ -151,9 +151,8 @@
 // Create a new file in the /pages dir
 create_access_file($filename, $page_id, $level);
 
-// Get new order for section
-$order = new order(TABLE_PREFIX.'sections', 'position', 'section_id', 'page_id');
-$position = $order->get_new($parent);
+// add position 1 to new page
+$position = 1;
 
 // Add new record into the sections table
 $database->query("INSERT INTO ".TABLE_PREFIX."sections (page_id,position,module,block) VALUES ('$page_id','$position', '$module','1')");
