[Mapbender-commits] r7885 - trunk/mapbender/http/classes

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Wed Jun 22 13:18:27 EDT 2011


Author: astrid_emde
Date: 2011-06-22 10:18:27 -0700 (Wed, 22 Jun 2011)
New Revision: 7885

Modified:
   trunk/mapbender/http/classes/class_gui.php
Log:
#844 when an application is renamed an update on gui_gui_category is now done

Modified: trunk/mapbender/http/classes/class_gui.php
===================================================================
--- trunk/mapbender/http/classes/class_gui.php	2011-06-22 17:15:09 UTC (rev 7884)
+++ trunk/mapbender/http/classes/class_gui.php	2011-06-22 17:18:27 UTC (rev 7885)
@@ -419,7 +419,11 @@
 
 			array_push($sql, "INSERT INTO gui (gui_id, gui_name, gui_description, gui_public) SELECT $1, $2, gui_description, gui_public FROM gui WHERE gui_id = $3;");
 			array_push($v, array ($newGuiName, $newGuiName, $guiList));
-			array_push($t, array ("s", "s", "s"));;
+			array_push($t, array ("s", "s", "s"));
+
+			array_push($sql, "INSERT INTO gui_gui_category (fkey_gui_id, fkey_gui_category_id) SELECT $1, fkey_gui_category_id FROM gui_gui_category WHERE fkey_gui_id = $2;");
+			array_push($v, array ( $newGuiName, $guiList));
+			array_push($t, array ("s", "s"));
 			
 			array_push($sql, "INSERT INTO gui_element (fkey_gui_id, e_id, e_pos, e_public, e_comment, e_title, e_element, e_src, e_attributes, e_left, e_top, e_width, e_height, e_z_index, e_more_styles, e_content, e_closetag, e_js_file, e_mb_mod, e_target, e_requires, e_url) SELECT $1, e_id, e_pos, e_public, e_comment, e_title, e_element, e_src, e_attributes, e_left, e_top, e_width, e_height, e_z_index, e_more_styles, e_content, e_closetag, e_js_file, e_mb_mod, e_target, e_requires, e_url FROM gui_element WHERE fkey_gui_id = $2;");
 			array_push($v, array($newGuiName, $guiList));



More information about the Mapbender_commits mailing list