Skip to content

sw-order-line-items-grid component causes an error when trying to delete line item from a non-RatePay order #80

Description

@elena-mb

In onDeleteItem method, sw-order-line-items-grid component calls this.$super('onConfirmDelete', item, itemIndex), skipping the original onDeleteItem logic of assigning the item.id to this.showDeleteModal. This results in a call to api/order-line-item/false endpoint (instead of calling api/order-line-item/{line-item-id}), which ends in 404.

Image

How to reproduce:

  1. Create an order with any payment method other than RatePay
  2. Go to admin > order > view the order
  3. Try to remove an item from the order by using the actions dropdown
Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions