backdrop / backdrop-issues

Issue tracker for Backdrop core.
144 stars 39 forks source link

Error when grouping date fields in Views #3267

Open laryn opened 6 years ago

laryn commented 6 years ago

Describe your issue or idea

Pulled out a bug discovered on this issue.

I thought we might be able to expose the "Scheduled date" field as a select list of grouped filters (e.g. Scheduled publication: Any (default), only scheduled content, Within the next week, Within the next month...) but the exposed/group filter option doesn't seem to work with a date field. That may be a bug...

Follow up in the other thread by @herbdool:

Notice: Undefined index: #states in views_handler_filter->build_group_form() (line 963 of /app/core/modules/views/handlers/views_handler_filter.inc). Warning: Invalid argument supplied for foreach() in views_handler_filter->build_group_form() (line 963 of /app/core/modules/views/handlers/views_handler_filter.inc).

might have something to do with https://www.drupal.org/project/date/issues/1876168 though patch hasn't been accepted yet. [RTBC]

klonos commented 5 years ago

Hey @laryn 👋 ...do you have any steps to reproduce this?

laryn commented 5 years ago

@klonos Try this:

Screen Shot 2019-05-17 at 11 38 56 AM