diff options
author | Marius Balteanu <marius.balteanu@zitec.com> | 2022-03-19 10:14:29 +0000 |
---|---|---|
committer | Marius Balteanu <marius.balteanu@zitec.com> | 2022-03-19 10:14:29 +0000 |
commit | e50190a82a5b6a066a3fadfdebf9df6e268719ad (patch) | |
tree | c49f3341b96612314a1f0e238102cce24f1aaaa7 /app/helpers/users_helper.rb | |
parent | 23874fa913c62f7da23f2d1fab6e5e1a445ae290 (diff) | |
download | redmine-e50190a82a5b6a066a3fadfdebf9df6e268719ad.tar.gz redmine-e50190a82a5b6a066a3fadfdebf9df6e268719ad.zip |
Automatically add the user to the watchers list after contributing to an issue (#4347). User can enable/disable this feature from My Account.
Patch by Takenori TAKAKI and Jens Krämer.
git-svn-id: http://svn.redmine.org/redmine/trunk@21469 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/helpers/users_helper.rb')
-rw-r--r-- | app/helpers/users_helper.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/helpers/users_helper.rb b/app/helpers/users_helper.rb index 9724a3487..0dbb0f1bd 100644 --- a/app/helpers/users_helper.rb +++ b/app/helpers/users_helper.rb @@ -66,6 +66,10 @@ module UsersHelper [l('label_last_tab_visited'), 'last_tab_visited']] end + def auto_watch_on_options + UserPreference::AUTO_WATCH_ON_OPTIONS.index_by {|o| l("label_auto_watch_on_#{o}")} + end + def change_status_link(user) url = {:controller => 'users', :action => 'update', :id => user, :page => params[:page], :status => params[:status], :tab => nil} |