Skip to content

Commit

Permalink
Fixed order comment REST endpoint route param (#2750)
Browse files Browse the repository at this point in the history
  • Loading branch information
elidrissidev authored Nov 27, 2022
1 parent a559a55 commit 879caab
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/code/core/Mage/Sales/Model/Api2/Order/Comment/Rest.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ abstract class Mage_Sales_Model_Api2_Order_Comment_Rest extends Mage_Sales_Model
* Parameters in request used in model (usually specified in route mask)
*/
public const PARAM_ORDER_ID = 'id';
public const PARAM_COMMENT_ID = 'comment_id';
public const PARAM_COMMENT_ID = 'id';
/**#@-*/

/**
Expand Down
2 changes: 1 addition & 1 deletion app/code/core/Mage/Sales/etc/api2.xml
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@
</force_attributes>
<routes>
<route_entity>
<route>/orders/comments/:comment_id</route>
<route>/orders/comments/:id</route>
<action_type>entity</action_type>
</route_entity>
<route_collection>
Expand Down

0 comments on commit 879caab

Please sign in to comment.