Closed (outdated)
Project:
Location
Version:
6.x-3.x-dev
Component:
Location_views
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
5 Nov 2009 at 23:14 UTC
Updated:
19 Jul 2016 at 12:02 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
JaredAM commentedOn consideration, I noticed that the module had intended to handle multiple values, but the code wasn't quite complete.
I created a patch to add this functionality.
Modified location_handler_filter_location_province.inc to provide "word" (Contains any word) and a "not word" (Does not contain) operators.
Modified location.module function _location_autocomplete to handle a comma separated list of provinces.
The "is" and "word" (as well as "is not" and "not word") will both have the same functionality. The new operators are basically given as an option to prevent user confusion.
Comment #2
JaredAM commentedI tested the patch for unexposed fields, but when province is exposed, views returns an array rather than a string. Patch has been modified to anticipate this.
Comment #3
drumnjo commentedsubscribe
Comment #4
kruser commentedsubscribe
Comment #5
yesct commentedtagging.
Comment #6
kruser commentedThis patch work well, can it be committed?
Comment #7
rooby commentedMarking as a bug as the "Force single" views option does not work.
Thanks for the patch, this is definitely needed.
I have a couple of issues with the patch in #2 though:
* It changes the autocomplete functionality so that province fields anywhere will take multiple values. This is not desirable.
* The "word"/"not word" stuff makes things more confusing.
Here is a new patch that:
* Makes the "Force single" option actually do what it says. If unchecked the user can enter a comma delimited list of provinces using auto complete.
* Changes the autocomplete function so that it can be used with multiple values or a single value.
For my testing it works if others can test it would be great.
Comment #8
rooby commentedI just committed another patch that will break the patch in #7.
After the next dev version comes up you will nee to use this patch instead so it will apply properly.
Comment #9
liminu commentedPatch number #8 works well, you need to put the comma between the 2 province, but with the attachment views not work, any idea to fix it.
Comment #10
mattcasey commentedI think that this is not working with arguments. I am trying to filter by Location attached to a Content Profile node on the user profile. When I use UID as an argument, it shows nothing if I have more than one province. Multiple provinces work fine when there is no argument.
Comment #11
podarokbot recall
Comment #12
podarokbot
Comment #15
legolasboClosing old D6 issues as D6 is end of life