This commit addresses a bug in the dropdown menu search options for created and published. The options were not behaving as expected due to the date being a ActiveTriples::Relation rather than a string. The changes ensure all dates are converted into an array then the first date is extracted.
Story
This commit addresses a bug in the dropdown menu search options for created and published. The options were not behaving as expected due to the date being a ActiveTriples::Relation rather than a string. The changes ensure all dates are converted into an array then the first date is extracted.
Ref:
Expected Behavior Before Changes
Filtering by created (asc and desc) and published (asc and desc) did not produce any result in staging.
Expected Behavior After Changes
User should be able to filter by created (asc and desc) and published (asc and desc).
Screenshots / Video
Notes
This is a bug in staging. Reindexing is required.