Fix bug that caused Lookup user by User Account not to work properly. Basically wrong parameter to models.user.logic.getFromFields().
Patch by: Pawel Solyga
Review by: to-be-reviewed
--- a/app/soc/views/site/user/profile.py Tue Oct 14 22:35:46 2008 +0000
+++ b/app/soc/views/site/user/profile.py Tue Oct 14 22:57:52 2008 +0000
@@ -129,7 +129,7 @@
if form_id:
# email provided, so attempt to look up user by email
- user = models.user.logic.getFromFields(id=form_id)
+ user = models.user.logic.getFromFields(email=form_id.email())
if user:
lookup_message = ugettext_lazy('User found by email.')