I am working on a expat community site. Expats have 2 locations and i cannot find a good way to make the user beeing able to submit two locations and display both on the user map.
maybe it is able to integrate that in gmals module
I am working on a expat community site. Expats have 2 locations and i cannot find a good way to make the user beeing able to submit two locations and display both on the user map.
maybe it is able to integrate that in gmals module
Comments
Comment #1
ray007 commentedTack one of the locations on a usernode?
Comment #2
benovic commentednever thought of that!
atm im not using usernode. i think i took the wron choice not using it.
Comment #3
bdragon commentedThis is fixed in recent Location 3 snapshots / RCs.
Comment #5
rares commentedI am using the latest stable version of location(6.x-3.0) and gmap (6.x-1.0) but am able to see only one location per user at map/user.
I looked at the code and found that the SQL query at line 132 in gmap_location.module is causing this.
I am proposing patching function gmap_location_user_page():
At the very last line,
GROUP BY i.uidshould beGROUP BY i.lidThis ensures that grouping is done by each location rather than by user. I've tested it on my setup and it works as designed, selecting the highest role ID.
Comment #6
pmark23 commentedThe above patch suggestion fixed it for me.
Comment #7
bdragon commentedAlmost.
It *is* possible for multiple users to use the same lid (although there's no UI for accomplishing this at the moment.)
Anyway, I added i.lid to the group by. Thanks.
http://drupal.org/cvs?commit=166605
http://drupal.org/cvs?commit=166606