Closed (fixed)
Project:
Views Selective Filters
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
6 Feb 2014 at 15:50 UTC
Updated:
8 Mar 2014 at 22:31 UTC
Jump to comment: Most recent
Reported by @xl cheese:
Selective filter is not showing all available options, solved by tweaking the $max_items = 100; in get_oids() to a bigger number.
To do:
- The situation points to a posible wrongly constructed query when using $view_copy->set_items_per_page($max_items), because this is an aggregate query unless you have more than 100 items in the resulting. As for now, simply commenting out:
$view_copy->set_items_per_page($max_items);
will prevent the situation, but this was implemented as a safety mechanism to prevent a wrong views configuration to potentially show hundreds or thousands of options in an exposed filter.
Comments
Comment #1
david_garcia commentedI am not able to replicate.
Anyone experimenting this same issue, please, retrieve query log in preview mode and post here.
In order to preview all queries, apply patch for views:
https://drupal.org/node/2191287
Comment #2
david_garcia commentedQuery for selective values was incorrectly constructed when both Aggregate and DISTINCT or PURE DISTINCT.
Solution commited in:
http://drupalcode.org/sandbox/david_garcia_garcia/2162097.git/commit/ddb...