Index: orders_event_handler.php =================================================================== --- orders_event_handler.php (revision 13571) +++ orders_event_handler.php (working copy) @@ -1058,7 +1058,9 @@ if ($event->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' );