Skip to content

[Issue] fix: allow skus with ':'s #3438

@m2-assistant

Description

@m2-assistant

This issue is automatically created based on existing pull request: #3404: fix: allow skus with ':'s


Description (*)

When running bin/magento inventory:reservation:create-compensations if the sku contains ':' the regex breaks, and then the entities can't be loaded.
BEFORE
image
AFTER FIX
image

Fixed Issues (if relevant)

Manual testing scenarios (*)

This is difficult as it requires you to have a reservation inconsistency for a product with a sku with a ';' in it. But if this is the case simply run:
php bin/magento inventory:reservation:create-compensations
(with the compensation string)
You will get error like: "Get EntityId on null"

Questions or comments

Contribution checklist (*)

  • Pull request has a meaningful description of its purpose
  • All commits are accompanied by meaningful commit messages
  • All new or changed code is covered with unit/integration tests (if applicable)
  • All automated tests passed successfully (all builds are green)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions