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: boolean group field on actions #2767

Merged
merged 9 commits into from
May 17, 2024
Merged

Conversation

Paul-Bob
Copy link
Contributor

@Paul-Bob Paul-Bob commented May 14, 2024

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:

  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • I have added tests that prove my fix is effective or that my feature works

@Paul-Bob Paul-Bob added the Fix label May 14, 2024
@Paul-Bob Paul-Bob self-assigned this May 14, 2024
Copy link

codeclimate bot commented May 14, 2024

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.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

❤️

Copy link
Collaborator

@adrianthedev adrianthedev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great! Thanks!

@Paul-Bob Paul-Bob merged commit 43e7804 into main May 17, 2024
19 of 20 checks passed
@Paul-Bob Paul-Bob deleted the fix/boolean_group_field_on_actions branch May 17, 2024 08:30
Copy link
Contributor

This PR has been merged into main. The functionality will be available in the next release.

Please check the release guide for more information.

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

Successfully merging this pull request may close these issues.

Boolean Group Field in action fields yields to unpermitted param
3 participants