a.binder hace 8 años
padre
commit
00ea3b6ced
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      SE/se-lib/Route/WfsBiAudit.php

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

@@ -183,7 +183,7 @@ public function objectStructView($item) {
 					
 									
 									
-				$query = "select `ID` from ".DB::getPDO()->quote($table)." where ".$this->BaseStruct['primaryKey']." = {$primaryKey}";
+				$query = "select `".$this->BaseStruct['primaryKey']."` from `".$table."` where ".$this->BaseStruct['primaryKey']." = {$primaryKey}";
 				if (!($ID = DB::getPDO()->fetchValue($query))) {
 					self::throwServiceException("Błąd danych z BaseStruct ");
 				}