app/views/users/update.js.rjs in fat_free_crm-0.11.3 vs app/views/users/update.js.rjs in fat_free_crm-0.11.4
- old
+ new
@@ -1,8 +1,8 @@
if @user.errors.empty?
page.call "crm.flip_form", :edit_profile
page.call "crm.set_title", :edit_profile, t(:my_profile)
- page[:welcome_username].replace_html @user.name
+ page[:welcome_username].replace_html current_user.name
page[:profile].replace_html :partial => "user"
else
page[:edit_profile].replace_html :partial => "profile"
page[:edit_profile].visual_effect :shake, :duration => 0.25, :distance => 6
page[:user_email].focus