Closed (duplicate)
Project:
Views (for Drupal 7)
Version:
7.x-3.1
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
20 Feb 2012 at 10:13 UTC
Updated:
29 Mar 2012 at 19:15 UTC
Scenario:
view set up with a contextual filter (biblio field "secondary title", compare image-0)
- Auto preview with contextual filter:
each value of "Bergischer Kalender" and "Rheinisch-Bergischer Kalender"
results in a valid result (see images 1 and 2)
- switching the contextual filter field to "allow multiple values" (image 3)
results in:
a) input "Rheinisch-Bergischer Kalender"
Result list is still valid (see image 4)
b) input "Bergischer Kalender)
Result list is empty (see image 5)
c) any syntax using "," or "+" combining both strings leads to empty output
| Comment | File | Size | Author |
|---|---|---|---|
| views-contextual-5.png | 18.6 KB | schildi | |
| views-contextual-4.png | 35.06 KB | schildi | |
| views-contextual-3.png | 39.98 KB | schildi | |
| views-contextual-2.png | 28.52 KB | schildi | |
| views-contextual-1.png | 33.88 KB | schildi |
Comments
Comment #1
Baber Javed commentedSubscribe, having same issue
Comment #2
dawehnerit would be kind of cool if you could display the running sql as well. You can enable this in the admin settings of views under admin/structure/views/settings.
Comment #3
schildi commentedof course, sorry
flag contextual filter field to "allow multiple values" NOT set
flag contextual filter field to "allow multiple values" set
the difference is, that in the case "allow multiple values" the string "Bergischer Kalender" is split into a set of words.
Hint for avoiding confusion: The sequence CONCAT ... is set up to force sorting number (stored as strings) the right way by prepending zero digits ( "5-8" => 005-8")
Comment #4
dawehnerThis seems to be more or less a duplicate of #1042546: Allow to replace spaces by dashes in links. The underlying problem is that there is no difference between "+" and " ", if you parse the url.