Index: branches/5.2.x/core/kernel/utility/event.php =================================================================== diff -u -N -r15137 -r15144 --- branches/5.2.x/core/kernel/utility/event.php (.../event.php) (revision 15137) +++ branches/5.2.x/core/kernel/utility/event.php (.../event.php) (revision 15144) @@ -1,6 +1,6 @@ Application->hasObject($this->prefixSpecial) ) { - $top_event =& $this; + $top_event = $this; // when OnSave calls OnPreSave in first line, then this would make sure OnSave is used while ( is_object($top_event->MasterEvent) ) { - $top_event =& $top_event->MasterEvent; + $top_event = $top_event->MasterEvent; } - $params['parent_event'] =& $top_event; + $params['parent_event'] = $top_event; } $object = $this->Application->recallObject($this->prefixSpecial, $this->pseudoClass, $params); @@ -294,6 +294,7 @@ * * @param string $name name of callable event (optionally could contain prefix_special as well) * @see kEvent::MasterEvent + * @todo Will overwrite master event data with called event data, which makes 'parent_event' useless in most cases */ public function CallSubEvent($name) {