Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Drupal 4.7 with locations cvs installed. User enters his location in his user account form and saves it. When he revisits the edit portion of his account the location is still there - good. However if he changes any other values and hits submit, the location data disappears.
Comment | File | Size | Author |
---|---|---|---|
#5 | location.module_12.patch | 708 bytes | webchick |
Comments
Comment #1
lunas CreditAttribution: lunas commentedI am no having no success in sorting out this problem. Any help would be appreciated.
Comment #2
ajwwong CreditAttribution: ajwwong commentedI can confirm this issue, but let me spell out in more precise detail how it manifests on my system. [Title changed to reflect the bug, more specifically:
New title:
Locations disappear when user edits any of the items under the secondary menus of his account
Here's the behavior:
(1) User enters in location information under the menu setting
So far, so good.
(2) However, when the user attempts to edit items that are in the SECONDARY menus underneath the "edit" tab, e.g., profile links, for example
...or...
the previously entered location information disappears. [Note, this bug remains even when gmap.module is disabled.]
Important bug -- possibly linked to the current incompatibility between gmap and location.module, imho. See also,
http://drupal.org/node/56590
and possibly
http://drupal.org/node/58793
Good luck!
Albert
www.ithou.org
Comment #3
webchickYeah, nasty bug. I'm going to try and fix this for planetsoc.com, but it's 4:30am so no promises. ;)
Problem is coming in location_user:
Investigating further...
Because this:
This line in location_user:
_location_save($edit['location'] ? $edit['location'] : array(), $user, 'user');
totally clears the
Comment #4
webchickBah. ;) Told you it was late. ;) Ignore after "investigating further..."
Comment #5
webchickYou gotta love those 1-liner patches that take you 4 hours to figure out. ;)
Comment #6
lunas CreditAttribution: lunas commentedHeh, at least you only spent 4 hours on it, I've spent weeks...obviously I didn't know what I was looking for. Thanks so much for figuring it out.
Comment #7
ajwwong CreditAttribution: ajwwong commentedhey, webchick! great fix!! Amazing.
btw, do you know if this solves the issue here :
http://drupal.org/node/56590
I want to make it so people don't have to enter their location information twice (once on the Location Map) and (once on the user/edit page)?
My guess is "No" and that people still have to enter their location information twice -- at least judging from your posting here...
http://2006.planet-soc.com/?q=node/119
Anyhow, thanks for a great fix...
Albert
www.ithou.org
Comment #8
webchickHi, Albert.
No, sorry... the fix for Gmap: Conflict with location.module requires changing Gmap module so that it saves user locations in a way that is compatible with location.module. webgeer is probably the best person for that particular job. :)
Comment #9
ajwwong CreditAttribution: ajwwong commentedthanks for the response, webchick. appreciate it! :-)
Comment #10
oadaeh CreditAttribution: oadaeh commentedI just ran into this bug (I actually ran into it about a week ago, but didn't realize it until today), and this patch worked great to fix the problem. Thanks!
Comment #11
ankur CreditAttribution: ankur commentedCommitted to HEAD and DRUPAL-4-7. Thanks for the patch and reviews.
Comment #12
(not verified) CreditAttribution: commented