summaryrefslogtreecommitdiffstats
path: root/app/controllers/issues_controller.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2011-12-13 19:50:44 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2011-12-13 19:50:44 +0000
commite1f885feda55221ee7fa6add249eb3f930df5a4d (patch)
tree1876b39694e850fd2f0f21486455fc9d0cfe819f /app/controllers/issues_controller.rb
parent4c469f9646ce341c461c24a30b6d5c9e0f70adbc (diff)
downloadredmine-e1f885feda55221ee7fa6add249eb3f930df5a4d.tar.gz
redmine-e1f885feda55221ee7fa6add249eb3f930df5a4d.zip
Use safe_attributes for issue watchers assignment.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8197 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/controllers/issues_controller.rb')
-rw-r--r--app/controllers/issues_controller.rb8
1 files changed, 2 insertions, 6 deletions
diff --git a/app/controllers/issues_controller.rb b/app/controllers/issues_controller.rb
index 3ce25a134..353a3b977 100644
--- a/app/controllers/issues_controller.rb
+++ b/app/controllers/issues_controller.rb
@@ -312,12 +312,8 @@ private
return false
end
@issue.start_date ||= Date.today if Setting.default_issue_start_date_to_creation_date?
- if params[:issue].is_a?(Hash)
- @issue.safe_attributes = params[:issue]
- if User.current.allowed_to?(:add_issue_watchers, @project) && @issue.new_record?
- @issue.watcher_user_ids = params[:issue]['watcher_user_ids']
- end
- end
+ @issue.safe_attributes = params[:issue]
+
@priorities = IssuePriority.active
@allowed_statuses = @issue.new_statuses_allowed_to(User.current, true)
end