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

WebformMetadataDate wrongly array filters empties #140

Open
DiegoPino opened this issue May 12, 2022 · 0 comments
Open

WebformMetadataDate wrongly array filters empties #140

DiegoPino opened this issue May 12, 2022 · 0 comments
Assignees
Labels
bug Something isn't working Webform Elements Things with input to fill and interact with while ingesting metadata
Milestone

Comments

@DiegoPino
Copy link
Member

What?

The EDFT Validation logic assumes the data is present. When empty it fails. This is a bug and an easy one to fix

TypeError: array_filter(): Argument #1 ($array) must be of type array, null given in array_filter() (line 357 of /var/www/html/web/modules/contrib/webform_strawberryfield/src/Plugin/WebformElement/WebformMetadataDate.php)
#0 /var/www/html/web/modules/contrib/webform_strawberryfield/src/Plugin/WebformElement/WebformMetadataDate.php(357): array_filter(NULL)

@patdunlavey I take this one

@DiegoPino DiegoPino added bug Something isn't working Webform Elements Things with input to fill and interact with while ingesting metadata labels May 12, 2022
@DiegoPino DiegoPino added this to the 1.0.0 milestone May 12, 2022
@DiegoPino DiegoPino self-assigned this May 12, 2022
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working Webform Elements Things with input to fill and interact with while ingesting metadata
Projects
None yet
Development

No branches or pull requests

1 participant