- Issue created by @evonasek
- Status changed to Postponed: needs info
almost 2 years ago 7:45am 7 February 2023 - π³π±Netherlands Lendude Amsterdam
@evonasek thanks for reporting your issue.
We only set issues to 'fixed' once they have been committed, so moved this back.
Can you provide example code or steps of how to trigger this with just Drupal core? Often when these issues occur it is due to bad data being supplied by custom code or module, so we need to be sure that this is an actual bug and not just bad data.
- π©πͺGermany pebosi
Same bug on my views, having aggregations activated.
Patch works for me.
- Status changed to Active
almost 2 years ago 12:03pm 9 March 2023 - πΈπͺSweden johnzzon Gothenburg πΈπͺ
I encountered this in a project after upgrading to PHP 8.1 as well.
I tested it in the standard profile installation (no contrib or custom modules).
Steps to reproduce:
- Enable the Date range module
- Create a date range field (can be cardinality of 1 or unlimited, doesn't matter) on any content type
- Create a node and fill the date field
- Create a view with a page display that lists nodes of the content type
- Add the date field, set format to
- Turn on Aggregation
- Set Aggregation settings on the field to "Minimum"
- Save the view
- Go to the view page and see that the error triggers
Using xdebug, I can see that the
$value
is a formatted date (eg. 2023-03-09), and I guess it uses NumericField because we use Minimum?
Maybe this is not supported, but I would expect the earliest date to be used when using Minimum.