Page Menu
Home
In-Portal Phabricator
Search
Configure Global Search
Log In
Files
F727086
D238.id635.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Mon, Jan 6, 6:35 AM
Size
820 B
Mime Type
text/x-diff
Expires
Tue, Jan 7, 6:35 AM (3 d, 4 h ago)
Engine
blob
Format
Raw Data
Handle
537150
Attached To
D238: MINC-179 - Remove order id/object after the end of checkout process
D238.id635.diff
View Options
Index: branches/5.2.x/units/orders/orders_event_handler.php
===================================================================
--- branches/5.2.x/units/orders/orders_event_handler.php
+++ branches/5.2.x/units/orders/orders_event_handler.php
@@ -520,8 +520,15 @@
WHERE '.$order_idfield.' = '.$order_id;
$this->Conn->Query($sql);
+ // Remember order ID for use on "Thank You" page.
$this->Application->StoreVar('front_order_id', $order_id);
+
+ // Remove globals, set from "_createNewCart" method.
+ $this->Application->DeleteVar('ord_id');
$this->Application->RemoveVar('ord_id');
+
+ // Prevent accidental access to non-Incomplete order.
+ $this->Application->removeObject($event->getPrefixSpecial());
$this->Application->Session->SetCookie('shop_cart_cookie', '', strtotime('-1 month'));
}
Event Timeline
Log In to Comment