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

+ 6 - 1
SE/se-lib/Route/WfsBiAudit.php

@@ -142,7 +142,12 @@ public function objectStructView($item) {
 			$gml = $this->addChild($wfs, 'gml:featureMember');
 
 			$query = "select `ID` from `BI_audit_ALL` where `REMOTE_TABLE` = " . DB::getPDO()->quote($table) . " and `REMOTE_ID` = {$primaryKey}";
-			if (!($ID = DB::getPDO()->fetchValue($query))) self::throwServiceException("Błąd danych");
+			if (!($ID = DB::getPDO()->fetchValue($query))) 
+				
+				objectStructureAction('default_db/BI_audit_CEIDG_pelnomocnicy/BI_audit_CEIDG_pelnomocnicy');
+
+				//self::throwServiceException("Błąd danych");
+				
 			$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}");