Skip to content
New issue

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

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

Already on GitHub? # to your account

Use strict check for is null, as it otherwise causes empty arrays to not have any field #2604

Merged
merged 1 commit into from
Jun 13, 2024

Conversation

Tofandel
Copy link
Contributor

@Tofandel Tofandel commented Jun 10, 2024

Because null == [] is true in php, fields which are empty arrays (for example for Checkboxes) were not present in the TWILL.store.form.fields

This causes issues with connectedFields which expect the field to always be an array if arrayContains is set to false and so the field does not appear when it's expected to when loading the page (until you check and uncheck a checkbox)

@ifox ifox merged commit bb84e79 into area17:3.x Jun 13, 2024
11 checks passed
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants