|
|
@@ -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 ");
|
|
|
}
|