a.binder 8 years ago
parent
commit
edb036073a
1 changed files with 5 additions and 5 deletions
  1. 5 5
      SE/se-lib/Route/WfsBiAudit.php

+ 5 - 5
SE/se-lib/Route/WfsBiAudit.php

@@ -169,16 +169,16 @@ public function objectStructView($item) {
 						$this->addChild($feature, "default_db__x3A__{$row['REMOTE_TABLE']}:ID", $row['REMOTE_ID']);
 						if ($relation) $this->addChild($feature, "relation_from", $this->relationName($relation));
 						//$query = "select `ID2` from `BI_audit_ALL_ref` where `ID1` = {$ID}";
-						$where = $relation ? "and ({$relation} & `RELATION_ID`) != {$relation}" : "";
-						$query = "select `ID2`, `RELATION_ID` from `BI_audit_ALL_ref` where `ID1` = {$ID} {$where}";
-						$result = DB::getPDO()->fetchAll($query);
-						foreach ($result as $row)
+						//$where = $relation ? "and ({$relation} & `RELATION_ID`) != {$relation}" : "";
+						//$query = "select `ID2`, `RELATION_ID` from `BI_audit_ALL_ref` where `ID1` = {$ID} {$where}";
+						//$result = DB::getPDO()->fetchAll($query);
+						//foreach ($result as $row)
 						// $this->findRelations($feature, $row['ID2'], $resolveDepth - 1, $row['RELATION_ID'],);
 						findRelations_base($node, $ID, $resolveDepth, $relation = null, $this->BaseStruct,$BaseTableTo) ;
 
 					} else {
 						$xlink = $this->addChild($node, "default_db__x3A__{$BaseTableTo}:{$BaseTableTo}");
-						$this->addAttribute($xlink, 'xlink:href', "https://biuro.biall-net.pl/wfs/default_db/{$BaseTableTo]}?BI_audit_ALL_ref_RELATIONS={$relation}#{$BaseTableTo}.{$row[$this->BaseStruct['primaryKey']]}");
+						$this->addAttribute($xlink, 'xlink:href', "https://biuro.biall-net.pl/wfs/default_db/".$BaseTableTo."?BI_audit_ALL_ref_RELATIONS={$BaseTableTo}#{$BaseTableTo}.{$row[$this->BaseStruct['primaryKey']]}");
 					}
 					array_pop($this->path);