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

fix: use local attribute range in multiple item variant dialog #38970

Merged

Conversation

GursheenK
Copy link
Member

@GursheenK GursheenK commented Dec 27, 2023

Bug
When a numeric Item Attribute is created with a default range and added to an Item, the default range is preferred over the item-specific range defined for the attribute while adding Multiple Variants for the Item.

Fix
Use the item-specific range instead of the default range for generating the options in the Variants dialog. The default range is fetched when the attribute is added to the child table, so not editing it will anyway make the logic fall back to use the default range.

Resolves #38705

@GursheenK GursheenK marked this pull request as ready for review December 27, 2023 14:47
@rohitwaghchaure rohitwaghchaure merged commit d3aff00 into frappe:develop Jan 12, 2024
8 checks passed
rohitwaghchaure added a commit that referenced this pull request Jan 12, 2024
…-38970

fix: use local attribute range in multiple item variant dialog (backport #38970)
rohitwaghchaure added a commit that referenced this pull request Jan 12, 2024
…-38970

fix: use local attribute range in multiple item variant dialog (backport #38970)
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 27, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Creating multiple item variants ignores local attribute definition
2 participants