You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In a custom element source, with the condition of a date field set to 'empty' or 'not empty', an error gets thrown:
craft\fields\conditions\DateFieldConditionRule::elementQueryParam(): Return value must be of type ?array, string returned
Steps to reproduce
Create a custom element source on an element with a date field
Set a condition 'not empty' or 'empty' on the date field
Try to load the element index. It doesn't work (for me)
elementQueryParam must return null or an array, but it gets its input from BaseDateRangeConditionRule, which returns a string if 'empty' or 'not empty' was requested.
Craft CMS version
4.3.4
PHP version
8.1
Operating system and version
No response
Database type and version
No response
Image driver and version
No response
Installed plugins and versions
No response
The text was updated successfully, but these errors were encountered:
What happened?
Description
In a custom element source, with the condition of a date field set to 'empty' or 'not empty', an error gets thrown:
craft\fields\conditions\DateFieldConditionRule::elementQueryParam(): Return value must be of type ?array, string returned
Steps to reproduce
elementQueryParam
must return null or an array, but it gets its input fromBaseDateRangeConditionRule
, which returns a string if 'empty' or 'not empty' was requested.Craft CMS version
4.3.4
PHP version
8.1
Operating system and version
No response
Database type and version
No response
Image driver and version
No response
Installed plugins and versions
No response
The text was updated successfully, but these errors were encountered: