I have seen some posts about this but cannot find a resolution. Updates to the user profile, either by the user or by admin, result in the location being set to zero and therefore the previously entered location being lost (for a user map).

I did a print_r before updating a user provile and the correct coordinates were in the $user variables. After updating they had been set to zero, so I guess this is on the db update side of things?

CommentFileSizeAuthor
#10 edit_user.patch2.07 KBsikjoy

Comments

spooky69’s picture

Nobody?

bdragon’s picture

http://drupal.org/node/125001

When this is in, I'm going to delete the sections of gmap_location.module that deal with saving users, as it is broken.

spooky69’s picture

Does that mean users will not be able to add their locations and that a user map will no longer be available? I do hope that this will not be the case!

bdragon’s picture

No, it means that Location will be responsible for user lat/lon coordinates instead of GMap. Location will still use gmap to get the coordinate chooser, and Gmap will stop writing into the location table directly.

spooky69’s picture

Super - I was about to have a heart attack before you clarified ;-) I don't suppose you have any idea when this is likely to be implemented? I also presume this will require and update of both gmap and location modules?

spooky69’s picture

Hi,

I note new releases of this module. Have these fixed anything to do with this issue. If not, should the patch noted in the above link for the location module be applied and then the gmap module updated? Will this course of action fix this issue?

-- www.inventionmail.com --

spooky69’s picture

Is this issue resolved as yet?

Lausch’s picture

the bug is not fixed yet!

i found the system how the bug works. maybe it helps to fix the problem:

if you edit your account and switch to the location map and save, than it will work.
anytime you edit the account without save the settings on the location map tab, the account settings will change the geo settings to 0

hope anyone can fix this bug.

it is buggy since month...

greets

Lausch

sikjoy’s picture

So If I apply the patch mentioned in Update #2 to the location module. What corresponding changes need to be made to gmap_location?

sikjoy’s picture

StatusFileSize
new2.07 KB

Here is a patch for this bug. Apply to gmap_location.module. I have tested it on my server, but others should double check it before putting it on a production server.

bdragon’s picture

Status: Active » Needs review
bdragon’s picture

Status: Needs review » Fixed

OK, the real fix is to not attempt to act on update / insert every time, but ONLY when the category is gmap_user.

Wrapped the insert/update case in a category check and committed to DRUPAL-5.

Anonymous’s picture

Status: Fixed » Closed (fixed)