-
-
Notifications
You must be signed in to change notification settings - Fork 266
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: boolean group field on actions #2767
Conversation
app/components/avo/fields/boolean_group_field/edit_component.rb
Outdated
Show resolved
Hide resolved
app/components/avo/fields/boolean_group_field/edit_component.rb
Outdated
Show resolved
Hide resolved
app/components/avo/fields/boolean_group_field/edit_component.rb
Outdated
Show resolved
Hide resolved
app/components/avo/fields/boolean_group_field/edit_component.rb
Outdated
Show resolved
Hide resolved
Code Climate has analyzed commit 2916816 and detected 0 issues on this pull request. View more on Code Climate. |
def initialize(...) | ||
super(...) | ||
|
||
# Initilize here to avoid multiple calls to @field.get_html for each option. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
❤️
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great! Thanks!
This PR has been merged into Please check the release guide for more information. |
Description
Fixes #2569
Boolean group field was not respecting the form scope. For this reason, on actions, it's values was getting passed through params outside
fields
scope behaving as unpermitted params.This PR also drops
record
dependency for boolean group fields. Now it can be used for example on an action from index view.Checklist: