Needs work
Project:
Views (for Drupal 7)
Version:
7.x-3.x-dev
Component:
exposed filters
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
22 Mar 2012 at 21:29 UTC
Updated:
15 Apr 2015 at 08:32 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
halefxComment #2
buntstich commentedIn Drupal 6 are possible, but not in Drupal 7!?
Comment #3
dawehnerkeep calm ...
So you assigned the issue to yourself, so let's see whether you can find a patch for that.
Comment #4
halefxAdding a screenshot (I intended to do this a long time ago).
Comment #5
dawehnerThis is JUST an experimental patch, please don't blame me if it does not work, but sure feedback would be cool.
Comment #6
buntstich commentedI tested the patch with Views 7.x-3.3 and Better Exposed Filters 7.x-3.0-beta1. As master for Viewfield 7.x-2.x-dev and as a page with filters in the block. In addition, several filters were combined. So far everything works very well.
Comment #7
damiankloip commentedTestbot?
Comment #8
tim.plunkettWrong version for the bot.
Comment #9
damiankloip commentedah ha. How did I not spot that! :)
Comment #10
dawehnerReupload the patch for the bot ...
Comment #11
damiankloip commentedI have just tested, seems to work fine.
Comment #12
dawehnerThanks! Committed to both 7.x-3.x and 8.x-3.x
Comment #14
johnpitcairn commentedThis change breaks filter OR grouping. The join for optional field values changes from LEFT JOIN to INNER JOIN, making the field value required (effectively ANDing the filter group). See #1766338: Incorrect filter group OR behavior, LEFT JOIN changed to INNER JOIN.
Comment #15
johnpitcairn commentedI'm re-opening this issue and unassigning @buntstich. See #1766338: Incorrect filter group OR behavior, LEFT JOIN changed to INNER JOIN.
@dawehner, there is a patch in that issue that simply reverts the commit from this one, but applying that will result in a missing operator error for anyone using the new operator.
I guess the best option is to fix this issue so the new operator works without breaking filter OR groups, but doing so is probably beyond my ability/time at present.
Comment #16
stephen ollmanI'm unable to get the desired result using 'is all of' as this patch is meant to fix in D7.
I have a taxonomy group,
Banana
Apple
Orange
I have a node that is assigned both Banana and Orange.
In my view I have an exposed filter set against the taxonomy terms using 'is all of' as I want users to be able to filter down to an exact match.
So if I expose filter Banana only I get the node.
If I expose filter Orange only I get the node.
However if I expose filter Banana AND Orange I get nothing.
Any thoughts as to why?
I can obviously use 'is one of' that that gives a very loose criteria and any node with Banana or Orange will be displayed, but that's not the required result.
Comment #17
nhck commented