svn commit: r957 - trunk/mapbender/http: classes php
christoph at osgeo.org
christoph at osgeo.org
Thu Nov 23 10:31:58 EST 2006
Author: christoph
Date: 2006-11-23 15:31:57+0000
New Revision: 957
Modified:
trunk/mapbender/http/classes/class_gui.php
trunk/mapbender/http/php/mod_renameGUI.php
Log:
fixed bug 1601692
see http://sourceforge.net/tracker/index.php?func=detail&aid=1601692&group_id=88554&atid=587112
Modified: trunk/mapbender/http/classes/class_gui.php
Url: https://mapbender.osgeo.org/source/browse/mapbender/trunk/mapbender/http/classes/class_gui.php?view=diff&rev=957&p1=trunk/mapbender/http/classes/class_gui.php&p2=trunk/mapbender/http/classes/class_gui.php&r1=956&r2=957
==============================================================================
--- trunk/mapbender/http/classes/class_gui.php (original)
+++ trunk/mapbender/http/classes/class_gui.php 2006-11-23 15:31:57+0000
@@ -168,7 +168,6 @@
function copyGui ($guiId, $newGuiName, $withUsers) {
$error = false;
$guiList = $guiId;
-
if (!$this->guiExists($newGuiName)) {
$sql = "BEGIN";
$res = db_query($sql);
Modified: trunk/mapbender/http/php/mod_renameGUI.php
Url: https://mapbender.osgeo.org/source/browse/mapbender/trunk/mapbender/http/php/mod_renameGUI.php?view=diff&rev=957&p1=trunk/mapbender/http/php/mod_renameGUI.php&p2=trunk/mapbender/http/php/mod_renameGUI.php&r1=956&r2=957
==============================================================================
--- trunk/mapbender/http/php/mod_renameGUI.php (original)
+++ trunk/mapbender/http/php/mod_renameGUI.php 2006-11-23 15:31:57+0000
@@ -162,7 +162,8 @@
$gui = new gui();
if ($copy) {
- $gui->copyGui($guiList, $newGuiName, $withU);
+ if ($_POST['withU'] == 'true') $gui->copyGui($guiList, $newGuiName, true);
+ else $gui->copyGui($guiList, $newGuiName, false);
}
elseif ($rename) {
$gui->renameGui($guiList, $newGuiName);
More information about the Mapbender_commits
mailing list