Skip to content

Rest API Magento 2.4 order update overwrites existing item information #22431

Closed
@aschrammel

Description

@aschrammel

Preconditions (*)

magento 2.4-develop

Steps to reproduce (*)

  1. Place an order with a product with custom option.

  2. On the order item in the database the custom options are stored in the sales_order_item table, product_options field in the info_buyRequest as "key": "value" pair.

  3. Update the order using the Rest API (f.e. just hold order).

  4. The product_options are manipulated, omitting the custom options (they are present as options as object, but missing in the info_buy_request as "key": "value" pair.

Expected result (*)

The info_buyRequest remain as they were before the API Update
image

Actual result (*)

The info_buyRequest data are changed
image

Metadata

Metadata

Labels

Component: SalesFixed in 2.4.xThe issue has been fixed in 2.4-develop branchIssue: Clear DescriptionGate 2 Passed. Manual verification of the issue description passedIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedIssue: Format is validGate 1 Passed. Automatic verification of issue format passedIssue: Ready for WorkGate 4. Acknowledged. Issue is added to backlog and ready for developmentPriority: P3May be fixed according to the position in the backlog.Reproduced on 2.3.xThe issue has been reproduced on latest 2.3 releaseReproduced on 2.4.xThe issue has been reproduced on latest 2.4-develop branchSeverity: S2Major restrictions or short-term circumventions are required until a fix is available.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions