Index: branches/5.2.x/core/kernel/utility/temp_handler.php =================================================================== diff -u -N -r14628 -r14657 --- branches/5.2.x/core/kernel/utility/temp_handler.php (.../temp_handler.php) (revision 14628) +++ branches/5.2.x/core/kernel/utility/temp_handler.php (.../temp_handler.php) (revision 14657) @@ -1,6 +1,6 @@ parentEvent =& $event; + } + function SetTables($tables) { - // set tablename as key for tables array - $ret = Array(); + // set table name as key for tables array $this->Tables = $tables; $this->MasterTable = $tables['TableName']; } @@ -170,7 +189,7 @@ $this->AddTables($prefix, $tables); } } - + $this->SetTables($tables); } @@ -232,7 +251,7 @@ $sub_items = $this->Application->getUnitOption($prefix, 'SubItems', Array ()); /* @var $sub_items Array */ - + if ( is_array($sub_items) ) { foreach ($sub_items as $prefix) { $this->AddTables($prefix, $tmp); @@ -255,7 +274,7 @@ $special .= '-item'; } - $object =& $this->Application->recallObject($prefix.'.'.$special, $prefix, Array('skip_autoload' => true)); + $object =& $this->Application->recallObject($prefix.'.'.$special, $prefix, Array('skip_autoload' => true, 'parent_event' => &$this->parentEvent)); /* @var $object kCatDBItem */ $object->PopulateMultiLangFields(); @@ -357,7 +376,7 @@ //recalling by different name, because we may get kDBList, if we recall just by prefix $recall_prefix = $prefix_special.($special ? '' : '.').'-item'; - $object =& $this->Application->recallObject($recall_prefix, $prefix, Array('skip_autoload' => true)); + $object =& $this->Application->recallObject($recall_prefix, $prefix, Array('skip_autoload' => true, 'parent_event' => &$this->parentEvent)); /* @var $object kDBItem */ foreach ($ids as $id) @@ -596,7 +615,7 @@ if ( isset($master['Constrain']) ) { $query .= ' AND ' . $master['Constrain']; } - + $this->Conn->Query($query); }