Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 313871

Date fields incompatible with grouped views filters

$
0
0

Problem/Motivation

Creating a grouped filter based on a datetime field works well for the most part, but when you reset the exposed filters you get a Datetime error:

Exception: DateTime object not set. in Drupal\Component\Datetime\DateTimePlus->__call() (line 360 of /var/www/html/web/core/lib/Drupal/Component/Datetime/DateTimePlus.php)

Steps to reproduce

(Tested on 8.9.x)

  • Create a date field called field_test on the article content type with date and time in settings
  • Import the attached view using the single configuration import
  • Go to /date-test
  • Filter by 2015 and then press the reset button
  • The reset won't work and it will throw the error above

Proposed resolution

  1. Confirm issue
  2. Create patch with tests
  3. Review patch

Remaining tasks

N/A

User interface changes

N/A

API changes

N/A

Data model changes

N/A

Release notes snippet

N/A


Viewing all articles
Browse latest Browse all 313871

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>