Skip to content

Order relation child is not set during edit operation. #10195

@dankocherga

Description

@dankocherga

Order relation child is not set during edit operation.

Preconditions

Magento v2.1.7

Steps to reproduce

  1. Create an order
  2. Edit the order through admin panel
  3. Check relation_child_idand relation_child_real_id fields of the old order.

Expected result

  1. relation_child_idand relation_child_real_id fields are set to the IDs of the new order.
  2. Link to the new order is displayed on old order's admin page

Actual result

  1. Fields are null in the database
  2. Link to the new order is not displayed on old order's admin page

The problem seems to be related to how these fields are set: https://github.com/magento/magento2/blob/2.1.7/app/code/Magento/Sales/Model/AdminOrder/Create.php#L1878-L1882

The old order is not saved in that code segment.

Metadata

Metadata

Assignees

Labels

Component: SalesFixed in 2.2.xThe issue has been fixed in 2.2 release lineIssue: 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 developmentReproduced on 2.1.xThe issue has been reproduced on latest 2.1 releaseReproduced on 2.2.xThe issue has been reproduced on latest 2.2 releaseReproduced on 2.3.xThe issue has been reproduced on latest 2.3 releasebug report

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions