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

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Thu Oct 20 04:40:45 PDT 2016


Author: armin11
Date: 2016-10-20 04:40:44 -0700 (Thu, 20 Oct 2016)
New Revision: 9617

Modified:
   trunk/mapbender/http/classes/class_group.php
Log:
Extent mb_group table for uuid column to sync organizations with other systems (ckan)

Modified: trunk/mapbender/http/classes/class_group.php
===================================================================
--- trunk/mapbender/http/classes/class_group.php	2016-10-05 15:09:25 UTC (rev 9616)
+++ trunk/mapbender/http/classes/class_group.php	2016-10-20 11:40:44 UTC (rev 9617)
@@ -20,6 +20,7 @@
 require_once(dirname(__FILE__)."/../../core/globalSettings.php");
 require_once(dirname(__FILE__)."/../classes/class_RPCEndpoint.php");
 require_once(dirname(__FILE__)."/../classes/class_user.php");
+require_once(dirname(__FILE__)."/../classes/class_Uuid.php");
 
 /**
  * A Mapbender user as described in the table mb_group.
@@ -106,10 +107,10 @@
 		}
 		
 		db_begin();
-
-		$sql_group_create = "INSERT INTO mb_group (mb_group_name) VALUES ($1)";
-		$v = array($this->name);
-		$t = array("s");
+		$uuid = new Uuid();
+		$sql_group_create = "INSERT INTO mb_group (mb_group_name, uuid) VALUES ($1, $2)";
+		$v = array($this->name, $uuid);
+		$t = array("s","s");
 		$insert_result = db_prep_query($sql_group_create, $v, $t);
 
 		if (!$insert_result) {



More information about the Mapbender_commits mailing list