Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

when getting variants for NestedElementsController, include disabled too #3772

Open
wants to merge 1 commit into
base: 5.x
Choose a base branch
from

Conversation

i-just
Copy link
Contributor

@i-just i-just commented Nov 15, 2024

Description

When the nested-elements/reorder action is called for product variants, the beforeAction() method calls getVariants() via magic getter and a collection of elements is returned. By default, getVariants() doesn’t grab disabled elements.

For reordering to work in that case, the disabled elements have to be returned, too.

(I opted to amend the getter for the other NestedElementsController action, too (delete). Commerce doesn’t seem to use it at the moment, but just in case.)

Related issues

#3769

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant