[jira] [Commented] (OFBIZ-12103) Unable to cancel item from ecommerce

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Commented] (OFBIZ-12103) Unable to cancel item from ecommerce

Nicolas Malin (Jira)

    [ https://issues.apache.org/jira/browse/OFBIZ-12103?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17255018#comment-17255018 ]

Pradeep Choudhary commented on OFBIZ-12103:
-------------------------------------------

Regenerated the mentioned issue. It was occurring due to misplacement of orderItemSeqId variable under the form.

When user tries to cancel an item, it was sending the list of item seq Ids to 'cancelOrderItem' service in string format like "[00001, 00002]". On further processing, service tries to find orderItem with the given value which returns an empty result.

As there was an incorrect check to validate list, service was not showing the proper error message. 

Added patch for following:
1. Corrected check to validate the list variable.
2. Passed orderItemSeqId with 'cancelOrderItem' request directly to send particular item seqId only while cancelling an item.

 

 

> Unable to cancel item from ecommerce
> ------------------------------------
>
>                 Key: OFBIZ-12103
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-12103
>             Project: OFBiz
>          Issue Type: Bug
>    Affects Versions: 17.12.03
>            Reporter: Rashi Dhagat
>            Assignee: Pradeep Choudhary
>            Priority: Major
>         Attachments: CancelItem.webm
>
>
> Steps to regenerate:
> 1. Open https://demo-stable.ofbiz.apache.org/ecommerce/control/main
> 2. Place an order with multiple items
> 3. Click on order history
> 4. Click on View 
> 5. Select an item
> 6. Choose the reason and click on cancel
> Actual: The order item is not canceled.
> Please refer the attachment.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)