diff --git a/app/controllers/dmsf_state_controller.rb b/app/controllers/dmsf_state_controller.rb index e831d0a8..434df33f 100644 --- a/app/controllers/dmsf_state_controller.rb +++ b/app/controllers/dmsf_state_controller.rb @@ -49,11 +49,14 @@ class DmsfStateController < ApplicationController end def user_pref + end + + def user_pref_save @user_pref = DmsfUserPref.for(@project, User.current) @user_pref.email_notify = params[:email_notify]; @user_pref.save flash[:notice] = l(:notice_your_preferences_were_saved) - redirect_to URI.unescape(params[:current]) + redirect_to :action => "user_pref", :id => @project end def folder_notify_activate diff --git a/app/views/dmsf/index.html.erb b/app/views/dmsf/index.html.erb index 76e7541f..75824374 100644 --- a/app/views/dmsf/index.html.erb +++ b/app/views/dmsf/index.html.erb @@ -1,4 +1,4 @@ -<% html_title("DMSF") %> +<% html_title(l(:dmsf)) %>