Closed (fixed)
Project:
Addresses
Version:
6.x-1.0-alpha2
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
20 Sep 2008 at 07:09 UTC
Updated:
7 Oct 2008 at 05:31 UTC
As the Drupal Admin, I'm supposed to be able to go to a user's account and look at their data. That's the way it works for the other fields.
At this time, I see the Drupal Admin address whatever the user I look at.
Ooops... 8-)
It is late, but I probably will look into it tomorrow.
Thank you
Alexis Wilke
Comments
Comment #1
AlexisWilke commentedI have found the bug. You are using the global $user->uid which is wrong when an admin edits another user.
Instead, you need to use the $form['#uid'] value. Whether that's the cleanest way, maybe not, but that works in D6.
This needs to change in both, the Form generation and the Save function. I will post a patch later. It's a bit late in the night here already...
Comment #2
brmassa commentedAlexis,
i think i fixed it. Take another look please.
regards,
massa
Comment #3
AlexisWilke commentedMassa,
You missed one spot, but you're really close. 8-)
Thank you for going ahead and fixing that without a patch!
Alexis
Comment #4
brmassa commentedAlexis,
thanks again. commited.
regards,
massa
Comment #5
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.