Index: branches/5.2.x/core/units/priorites/priority_eh.php =================================================================== diff -u -N -r14989 -r15130 --- branches/5.2.x/core/units/priorites/priority_eh.php (.../priority_eh.php) (revision 14989) +++ branches/5.2.x/core/units/priorites/priority_eh.php (.../priority_eh.php) (revision 15130) @@ -1,6 +1,6 @@ Application->isAdminUser ) { return ; @@ -178,7 +178,7 @@ * * @param kEvent $event */ - function OnSavePriorityChanges(&$event) + function OnSavePriorityChanges($event) { if ($event->MasterEvent->status != kEvent::erSUCCESS) { // don't update priorities, when OnSave validation failed @@ -211,7 +211,7 @@ * * @param kEvent $event */ - function OnItemDelete(&$event) + function OnItemDelete($event) { // just store the prefix in which the items were deleted $del = $this->Application->RecallVar('priority_deleted' . $this->Application->GetVar('m_wid')); @@ -236,7 +236,7 @@ * * @param kEvent $event */ - function OnBeforeShutDown(&$event) + function OnBeforeShutDown($event) { $del = $this->Application->RecallVar('priority_deleted'.$this->Application->GetVar('m_wid')); $del = $del ? unserialize($del) : array(); @@ -261,7 +261,7 @@ * * @param kEvent $event */ - function OnSaveItems(&$event) + function OnSaveItems($event) { $tmp = $this->Application->RecallVar('priority_changes'.$this->Application->GetVar('m_wid')); $changes = $tmp ? unserialize($tmp) : array(); @@ -277,7 +277,7 @@ } } - function OnItemCreate(&$event) + function OnItemCreate($event) { $obj =& $event->MasterEvent->getObject(); if ($obj->GetDBField('Priority') == 0) { @@ -294,7 +294,7 @@ * * @param kEvent $event */ - function OnChangePriority(&$event) + function OnChangePriority($event) { $prefix = $this->Application->GetVar('priority_prefix'); $dummy_event = new kEvent( array('prefix'=>$prefix, 'name'=>'Dummy' ) ); @@ -364,13 +364,13 @@ * * @param kEvent $event */ - function OnRecalculatePriorities(&$event) + function OnRecalculatePriorities($event) { $priority_helper =& $this->Application->recallObject('PriorityHelper'); /* @var $priority_helper kPriorityHelper */ $prefix = $this->Application->GetVar('priority_prefix'); - $dummy_event = new kEvent( array('prefix'=>$prefix, 'name'=>'Dummy' ) ); + $dummy_event = new kEvent($prefix . ':Dummy'); list ($constrain, $joins) = $this->getConstrainInfo($event); $ids = $priority_helper->recalculatePriorities($dummy_event, $constrain, $joins); @@ -386,7 +386,7 @@ * @param kEvent $event * @return Array */ - function getConstrainInfo(&$event) + function getConstrainInfo($event) { $constrain_event = new kEvent($event->MasterEvent->getPrefixSpecial() . ':OnGetConstrainInfo'); $constrain_event->setEventParam('actual_event', $event->Name);