|
|
@@ -62,9 +62,9 @@ public function objectStructView($item) {
|
|
|
$return['table']=$item['name'];
|
|
|
$return['primaryKey']=$item['primaryKey'];
|
|
|
|
|
|
+ $this->BaseStruct=$return;
|
|
|
|
|
|
-
|
|
|
- return $return;
|
|
|
+ //return $return;
|
|
|
|
|
|
}
|
|
|
|
|
|
@@ -175,9 +175,9 @@ public function objectStructView($item) {
|
|
|
$query = "select `ID` from `BI_audit_ALL` where `REMOTE_TABLE` = " . DB::getPDO()->quote($table) . " and `REMOTE_ID` = {$primaryKey}";
|
|
|
if (!($ID = DB::getPDO()->fetchValue($query))) {
|
|
|
|
|
|
- $this->BaseStruct=$this->objectStructureAction('default_db/'.DB::getPDO()->quote($table).'/'.DB::getPDO()->quote($table));
|
|
|
+ $this->objectStructureAction('default_db/'.DB::getPDO()->quote($table).'/'.DB::getPDO()->quote($table));
|
|
|
|
|
|
- $query = "select `ID` from ".DB::getPDO()->quote($table)." where `".$this->BaseStruct['primaryKey']."` = {$primaryKey}";
|
|
|
+ $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 ");
|
|
|
}
|