Skip to content

Commit 879caab

Browse files
authored
Fixed order comment REST endpoint route param (#2750)
1 parent a559a55 commit 879caab

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

app/code/core/Mage/Sales/Model/Api2/Order/Comment/Rest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ abstract class Mage_Sales_Model_Api2_Order_Comment_Rest extends Mage_Sales_Model
3232
* Parameters in request used in model (usually specified in route mask)
3333
*/
3434
public const PARAM_ORDER_ID = 'id';
35-
public const PARAM_COMMENT_ID = 'comment_id';
35+
public const PARAM_COMMENT_ID = 'id';
3636
/**#@-*/
3737

3838
/**

app/code/core/Mage/Sales/etc/api2.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@
325325
</force_attributes>
326326
<routes>
327327
<route_entity>
328-
<route>/orders/comments/:comment_id</route>
328+
<route>/orders/comments/:id</route>
329329
<action_type>entity</action_type>
330330
</route_entity>
331331
<route_collection>

0 commit comments

Comments
 (0)