Index: branches/5.1.x/units/order_items/order_items_tag_processor.php =================================================================== diff -u -N -r13100 -r13745 --- branches/5.1.x/units/order_items/order_items_tag_processor.php (.../order_items_tag_processor.php) (revision 13100) +++ branches/5.1.x/units/order_items/order_items_tag_processor.php (.../order_items_tag_processor.php) (revision 13745) @@ -1,6 +1,6 @@ Application->recallObject('p', 'p', Array('skip_autoload' => true)); /* @var $product_object kCatDBItem */ - $product_id = $product_object->GetID(); + $product_id = $product_object->GetID(); + $product_id_get = $this->Application->GetVar('p_id'); while (!$list->EOL()) { // load product used in orderitem $this->Application->SetVar( $this->getPrefixSpecial().'_id', $list->GetDBField($id_field) ); // for edit/delete links using GET + $this->Application->SetVar('p_id', $list->GetDBField('ProductId')); $product_object->Load( $list->GetDBField('ProductId') ); // correct product load $this->Application->SetVar('m_cat_id', $product_object->GetDBField('CategoryId')); @@ -226,6 +228,7 @@ } // restore IDs used in cycle + $this->Application->SetVar('p_id', $product_id_get); $this->Application->DeleteVar($this->getPrefixSpecial().'_id'); $product_object->Load($product_id);