Index: branches/5.0.x/units/orders/orders_event_handler.php =================================================================== diff -u -r13532 -r13589 --- branches/5.0.x/units/orders/orders_event_handler.php (.../orders_event_handler.php) (revision 13532) +++ branches/5.0.x/units/orders/orders_event_handler.php (.../orders_event_handler.php) (revision 13589) @@ -1,6 +1,6 @@ Special == 'last') { // return last order id (for using on thank you page) - return $this->Application->RecallVar('front_order_id'); + $order_id = $this->Application->RecallVar('front_order_id'); + + return $order_id > 0 ? $order_id : FAKE_ORDER_ID; // FAKE_ORDER_ID helps to keep parent filter for order items set in "kDBList::linkToParent" } $ses_id = $this->Application->RecallVar( $event->getPrefixSpecial(true) . '_id' );