a.binder 8 лет назад
Родитель
Сommit
00ea3b6ced
1 измененных файлов с 1 добавлено и 1 удалено
  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 ");
 				}