[Mapbender-commits] r7884 - branches/2.7/http/classes

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Wed Jun 22 13:15:09 EDT 2011


Author: astrid_emde
Date: 2011-06-22 10:15:09 -0700 (Wed, 22 Jun 2011)
New Revision: 7884

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

Modified: branches/2.7/http/classes/class_gui.php
===================================================================
--- branches/2.7/http/classes/class_gui.php	2011-06-22 16:41:20 UTC (rev 7883)
+++ branches/2.7/http/classes/class_gui.php	2011-06-22 17:15:09 UTC (rev 7884)
@@ -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