Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
office_hours_field_is_empty
should use empty() or isset(), since the keys may not exist.
The keys will not exist if an entity is submitted without any values.
This causes field formatters to run with invalid $items variables.
Comments
Comment #2
johnvCan you describe your scenario, how to create the error? Simply changing the code to isset/empty needs testing of all the edge cases.
Are your fields filled via UI , or programmatically? (Or perhaps via migrating via e.g., Feeds )
Comment #3
johnvThis should be fixed with #3000228: Empty day field leads to PDOException