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 key casting in form_dropdown helper. #5035

Merged
merged 1 commit into from
Aug 31, 2021
Merged

Fix key casting in form_dropdown helper. #5035

merged 1 commit into from
Aug 31, 2021

Conversation

sfadschm
Copy link
Contributor

Closes #4993.

Description
This fixes the missing string casting for $optgroupKey in the form_dropdown helper.
This is an issue since strict in_array was introduced in #3565. Also adds a test for the casting (not pretty, but working).

I pointed this at develop as it is supposed to be a bugfix. Please correct if thats wrong 😄

Checklist:

  • Securely signed commits
  • Unit testing, with >80% coverage
  • Conforms to style guide

@paulbalandan paulbalandan merged commit ab580ba into codeigniter4:develop Aug 31, 2021
@sfadschm sfadschm deleted the form-dropdown branch August 31, 2021 10:34
@kenjis kenjis added the bug Verified issues on the current code behavior or pull requests that will fix them label Nov 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Verified issues on the current code behavior or pull requests that will fix them
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bug: selected value in multidimensional form_dropdown
4 participants