Index: trunk/CHANGELOG
===================================================================
--- trunk/CHANGELOG	(revision 574)
+++ trunk/CHANGELOG	(revision 575)
@@ -14,6 +14,7 @@
 
 20-Jan-2008 Thomas Hornik
 !	updated admin/pages/sections.php to changed jscalendar-api from changeset 571
+!	module menu_link: after adding a menu_link, the anchor dropdown shows "#"; fixed 
 #	fixed E_NOTICE-warning in news-module (about SECTION_ID in comment.php)
 19-Jan-2008 Christian Sommer
 !	Reduced the success time out and set WYSIWSY background to white
Index: trunk/wb/upgrade-script.php
===================================================================
--- trunk/wb/upgrade-script.php	(revision 574)
+++ trunk/wb/upgrade-script.php	(revision 575)
@@ -209,7 +209,7 @@
 		`section_id` INT(11) NOT NULL DEFAULT '0',
 		`page_id` INT(11) NOT NULL DEFAULT '0',
 		`target_page_id` INT(11) NOT NULL DEFAULT '0',
-		`anchor` VARCHAR(255) NOT NULL DEFAULT '' ,
+		`anchor` VARCHAR(255) NOT NULL DEFAULT '0' ,
 		PRIMARY KEY (`section_id`)
 	)
 ");
@@ -465,4 +465,4 @@
 ?>
 
 </body>
-</html>
\ No newline at end of file
+</html>
Index: trunk/wb/modules/menu_link/install.php
===================================================================
--- trunk/wb/modules/menu_link/install.php	(revision 574)
+++ trunk/wb/modules/menu_link/install.php	(revision 575)
@@ -36,9 +36,9 @@
 		`section_id` INT(11) NOT NULL DEFAULT '0',
 		`page_id` INT(11) NOT NULL DEFAULT '0',
 		`target_page_id` INT(11) NOT NULL DEFAULT '0',
-		`anchor` VARCHAR(255) NOT NULL DEFAULT '' ,
+		`anchor` VARCHAR(255) NOT NULL DEFAULT '0' ,
 		PRIMARY KEY (`section_id`)
 	)
 ");
 
-?>
\ No newline at end of file
+?>
Index: trunk/wb/modules/menu_link/add.php
===================================================================
--- trunk/wb/modules/menu_link/add.php	(revision 574)
+++ trunk/wb/modules/menu_link/add.php	(revision 575)
@@ -29,6 +29,6 @@
 }
 
 $table = TABLE_PREFIX ."mod_menu_link";
-$database->query("INSERT INTO `$table` (`page_id`, `section_id`, target_page_id, anchor) VALUES ('$page_id', '$section_id', '0', '')");
+$database->query("INSERT INTO `$table` (`page_id`, `section_id`, target_page_id, anchor) VALUES ('$page_id', '$section_id', '0', '0')");
 
-?>
\ No newline at end of file
+?>
