From 58e04549769ac6231ac6cd8eb16597f0c7e86a16 Mon Sep 17 00:00:00 2001 From: Bryan Fink Date: Wed, 18 Aug 2010 22:37:52 -0400 Subject: [PATCH] update the updated user record, not an old copy, to avoid losing email addresses --- apps/wriaki/src/user_resource.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/wriaki/src/user_resource.erl b/apps/wriaki/src/user_resource.erl index 3fb3ac9..2acf67f 100644 --- a/apps/wriaki/src/user_resource.erl +++ b/apps/wriaki/src/user_resource.erl @@ -125,7 +125,7 @@ accept_form(RD, Ctx=#ctx{user=User, client=C}) -> end, User2 = case proplists:get_value("bio", ReqProps) of undefined -> User1; - Bio -> wuser:set_bio(User, list_to_binary(Bio)) + Bio -> wuser:set_bio(User1, list_to_binary(Bio)) end, User3 = case proplists:get_value("password", ReqProps) of undefined -> User2;