Index: branches/5.2.x/units/orders/orders_event_handler.php =================================================================== diff -u -N -r16735 -r16805 --- branches/5.2.x/units/orders/orders_event_handler.php (.../orders_event_handler.php) (revision 16735) +++ branches/5.2.x/units/orders/orders_event_handler.php (.../orders_event_handler.php) (revision 16805) @@ -1,6 +1,6 @@ SetDBField('AffiliateId', (int)$this->Application->RecallVar('affiliate_id')); } else { - $object->SetDBField('AffiliateId', (int)$this->Application->GetVar('affiliate_id')); + $object->SetDBField('AffiliateId', (int)$this->Application->GetVarDirect('affiliate_id', 'Cookie')); } }