It is impossible to set values for grouped numeric filters with javascript enabled.

Steps to reproduce:

  1. Add a numeric field to user
  2. Edit the admin/people view
  3. Add a filter for the age field
  4. Expose it and group it.

The value, min and max fields are all hidden. What is supposed to happen is that either the value or the min max fields are supposed to appear depending on which operator you have selected.

CommentFileSizeAuthor
#1 2356443.1.patch765 bytesalexpott

Comments

alexpott’s picture

Status: Active » Needs review
Issue tags: +JavaScript, +VDC
StatusFileSize
new765 bytes
alexpott’s picture

Title: Grouped numeric filters can have a value set » Grouped numeric filters can not have a value set
olli’s picture

Status: Needs review » Reviewed & tested by the community

Nice! Without re-keying the array turns into constraint object in js, not an array of constraints.

Khetam’s picture

Awesome, after applied the patch array disappeared and everything is working fine.

Many thanks.
Khetam

dries’s picture

Status: Reviewed & tested by the community » Needs work
Issue tags: +Needs tests

This issue is a major bug and the change only impacts this one use of #states API, so it makes sense to allow this fix per #2350615: [policy, no patch] What changes can be accepted during the Drupal 8 beta phase?. Even though we don't have JS coverage, can we at least add test coverage that the PHP code is returning what is required for this functionality to work?

alexpott’s picture