a.binder 8 år sedan
förälder
incheckning
4d77cddc75
1 ändrade filer med 7 tillägg och 2 borttagningar
  1. 7 2
      SE/se-lib/Route/WfsBiAudit.php

+ 7 - 2
SE/se-lib/Route/WfsBiAudit.php

@@ -105,11 +105,14 @@ public function objectStructView($item) {
     private function findRelations_base($node, $ID, $resolveDepth, $relation = null, $BaseStruct=null,$table=null) {
 	    if (in_array($ID, $this->path)) return;
 		$this->path[] = $ID;
-		
+				error_log('#208 findRelations_base  passing');
+
 		foreach($BaseStruct['refs__objectNamespace'] as $ind=>$refs){
 				$getRefTable=ACL::getRefTable('default_db/'.$table.'/'.$table,$refs);
 				
 				$query = "select `REMOTE_PRIMARY_KEY`  from `".$getRefTable."` where `PRIMARY_KEY` = {$ID}";
+						error_log('#114 findRelations_base  passing query '.$query);
+
 				if (!($row = DB::getPDO()->fetchFirst($query))) {
 					
 				} else {
@@ -230,7 +233,7 @@ public function objectStructView($item) {
 			$query = "select `ID` from `BI_audit_ALL` where `REMOTE_TABLE` = " . DB::getPDO()->quote($table) . " and `REMOTE_ID` = {$primaryKey}";
 			if (!($ID = DB::getPDO()->fetchValue($query))) {
 				
-			
+				error_log('#233 default base passing');
 				$this->BaseStruct=$this->objectStructureAction("default_db/".$table."/".$table );
 					
 									
@@ -251,6 +254,8 @@ public function objectStructView($item) {
 						self::output($xml);
 				
 				} else {
+					error_log('#254 default  passing');
+
 					$this->findRelations($gml, $ID, $resolveDepth);
 		
 					foreach ($this->tablesUsed as $table) $this->addAttribute($wfs, "xmlns:default_db__x3A__{$table}", "https://biuro.biall-net.pl/wfs/default_db/{$table}");