Index: branches/5.2.x/units/orders/orders_tag_processor.php =================================================================== --- branches/5.2.x/units/orders/orders_tag_processor.php +++ branches/5.2.x/units/orders/orders_tag_processor.php @@ -1459,14 +1459,18 @@ */ function RemoveCouponLink($params) { - $type = strtolower($params['type']); - $url_params = Array ( - 'pass' => 'm,ord', - 'ord_event' => ($type == 'coupon') ? 'OnRemoveCoupon' : 'OnRemoveGiftCertificate', - 'm_cat_id' => 0, - ); + if ( !isset($params['pass']) ) { + $params['pass'] = 'm,ord'; + } + + $params['m_cat_id'] = 0; + + $link_type = $params['type']; + unset($params['type']); + + $params['ord_event'] = strtolower($link_type) == 'coupon' ? 'OnRemoveCoupon' : 'OnRemoveGiftCertificate'; - return $this->Application->HREF('', '', $url_params); + return $this->ItemLink($params); } /**