Преглед на файлове

fixed bug in update geom

Piotr Labudda преди 8 години
родител
ревизия
cc5a1e05be
променени са 1 файла, в които са добавени 3 реда и са изтрити 0 реда
  1. 3 0
      SE/se-lib/TableAcl.php

+ 3 - 0
SE/se-lib/TableAcl.php

@@ -1032,6 +1032,7 @@ class TableAcl extends Core_AclBase {
 
 	public function fieldsInit($force = false) {
 		$this->loadSchema();
+		// DBG::log("TableAcl({$this->_rootTableName}) fieldsInit() isDone: '{$this->_executed_fieldsInit}'");
 		if (null !== $this->_executed_fieldsInit) return;
 		$this->_executed_fieldsInit = true;
 
@@ -1588,6 +1589,7 @@ class TableAcl extends Core_AclBase {
 	}
 
 	public function getGeomFieldType($fieldName) {
+		if (empty($this->_types)) $this->fieldsInit($force = true);
 		$dbGeomType = $this->getFieldType($fieldName);
 		$dbGeomType = (!empty($dbGeomType['type']))? $dbGeomType['type'] : '';
 		$geomType = strtolower($dbGeomType);
@@ -1954,6 +1956,7 @@ class TableAcl extends Core_AclBase {
 		else if ($this->isGeomField($fieldName)) {
 			//$fldType = 'gml:GeometryPropertyType';
 			$geomType = $this->getGeomFieldType($fieldName);
+			// DBG::log("DBG Geom field type ({$fieldName}) type({$geomType})");
 			if ('polygon' == $geomType) return 'gml:PolygonPropertyType';
 			else if ('point' == $geomType) return 'gml:PointPropertyType';
 			else if ('linestring' == $geomType) return 'gml:LineStringPropertyType';