Page Menu
Home
In-Portal Phabricator
Search
Configure Global Search
Log In
Files
F847804
D61.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
Sat, Apr 19, 5:49 PM
Size
804 B
Mime Type
text/x-diff
Expires
Sun, Apr 20, 5:49 PM (20 m, 43 s)
Engine
blob
Format
Raw Data
Handle
602595
Attached To
D61: MINC-123 - Reset "m_cat_id" web request variable, used in "orditems_PrintList" tag
D61.diff
View Options
Index: branches/5.2.x/units/order_items/order_items_tag_processor.php
===================================================================
--- branches/5.2.x/units/order_items/order_items_tag_processor.php
+++ branches/5.2.x/units/order_items/order_items_tag_processor.php
@@ -230,6 +230,7 @@
$i = 0;
$product_id = $product_object->GetID();
$product_id_get = $this->Application->GetVar('p_id');
+ $category_id_backup = $this->Application->GetVar('m_cat_id');
while (!$list->EOL()) {
// load product used in orderitem
@@ -248,6 +249,7 @@
// restore IDs used in cycle
$this->Application->SetVar('p_id', $product_id_get);
+ $this->Application->SetVar('m_cat_id', $category_id_backup);
$this->Application->DeleteVar($this->getPrefixSpecial() . '_id');
if ( $product_id ) {
Event Timeline
Log In to Comment