Index: branches/5.3.x/core/kernel/utility/temp_handler.php =================================================================== diff -u -N -r15483 -r15677 --- branches/5.3.x/core/kernel/utility/temp_handler.php (.../temp_handler.php) (revision 15483) +++ branches/5.3.x/core/kernel/utility/temp_handler.php (.../temp_handler.php) (revision 15677) @@ -1,6 +1,6 @@ Application->makeClass( 'kDBConnection', Array (SQL_TYPE, Array (&$this->Application, 'handleSQLError')) ); + $connection = $this->Application->makeClass( 'kDBConnection', Array (SQL_TYPE, Array ($this->Application, 'handleSQLError')) ); /* @var $connection kDBConnection */ $connection->debugMode = $this->Application->isDebugMode(); @@ -860,6 +860,8 @@ $event_key = $prefix . ($special ? '.' : '') . $special . ':' . $name; $event = new kEvent($event_key); + $event->MasterEvent = $this->parentEvent; + if ( isset($foreign_key) ) { $event->setEventParam('foreign_key', $foreign_key); }