Skip to content

[Issue] required_options not updating correctly #38720

Open
@m2-assistant

Description

@m2-assistant

This issue is automatically created based on existing pull request: #38715: required_options not updating correctly


Description (*)

When a product no longer has a required option this isn't reflected in the DB / frontend.

Related Pull Requests

N/A

Fixed Issues (if relevant)

N/A

Manual testing scenarios (*)

  1. Create a product, with custom options.
  2. Make one or more of the options required.
  3. Save the product.
  4. run select * from catalog_product_entity where entity_id = ENTITY_ID; , validate required_options == 1
  5. Make all the custom options not required.
  6. Save the product
  7. run select * from catalog_product_entity where entity_id = ENTITY_ID; again.
    IF BROKEN: required_options will still be 1
    IF FIXED: required_options will be 0

Questions or comments

Haven't tested this via the API only via the MAP. Have validated that when the product doesn't have any required custom options required_options isn't passed in the payload. (So it's not the UI that's broken)

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)
  • README.md files for modified modules are updated and included in the pull request if any README.md predefined sections require an update
  • All automated tests passed successfully (all builds are green)

Metadata

Metadata

Assignees

Labels

Area: CatalogComponent: DBIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedPriority: P2A defect with this priority could have functionality issues which are not to expectations.Progress: PR in progressReproduced on 2.4.xThe issue has been reproduced on latest 2.4-develop branch

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions