|
|
@@ -180,17 +180,9 @@ public function objectStructView($item) {
|
|
|
|
|
|
|
|
|
$this->BaseStruct=$this->objectStructureAction("default_db/".$table."/".$table );
|
|
|
- $BaseStruct=$this->objectStructureAction('default_db/BI_audit_CEIDG_pelnomocnicy/BI_audit_CEIDG_pelnomocnicy');
|
|
|
|
|
|
|
|
|
- echo "BaseStruct 2
|
|
|
- ";
|
|
|
- print_r($this->BaseStruct);
|
|
|
- echo "BaseStruct3";
|
|
|
- print_r($BaseStruct);
|
|
|
- echo "table ".$table;
|
|
|
- die();
|
|
|
-
|
|
|
+
|
|
|
$query = "select `ID` from ".DB::getPDO()->quote($table)." where ".$this->BaseStruct['primaryKey']." = {$primaryKey}";
|
|
|
if (!($ID = DB::getPDO()->fetchValue($query))) {
|
|
|
self::throwServiceException("Błąd danych z BaseStruct ");
|