Closed (fixed)
Project:
Location
Version:
6.x-3.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
1 Feb 2006 at 11:02 UTC
Updated:
7 Mar 2006 at 01:45 UTC
Jump to comment: Most recent file
Following a patch to the way user profile information is dealt with, here's a patch that fixes the way that location information is displayed there. It also includes lat/long information where present.
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | location_9.patch | 1.54 KB | ankur |
| user_hook.patch | 1.01 KB | geodaniel |
Comments
Comment #1
geodaniel commentedThis is against 4.7b4 by the way
Comment #2
geodaniel commentedOh, there is an issue when a user adds a location but then removes it - the 'place:' tag is left there but with no information. The condition used to check if there is location information or not is
count($user->location)but this returns the number of elements (12) even if there is no information stored in that array. Any thoughts on a best way to get around this issue?Comment #3
ankur commentedI committed a slightly different version of the patch (see attachment) to HEAD. This patch is different from the original submission in that it only displays the lat/lon coordinates if the user has the 'submit latitude/longitude' permission. The worry about whether or not the location is empty is taken care of by replacing
with
Comment #4
(not verified) commented