diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2011-06-01 17:16:38 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2011-06-01 17:16:38 +0000 |
commit | fccf15c2a242fff60b1ee55b7abbe132ba2aceea (patch) | |
tree | e5ae6f9f750d92a1ab3a3bd26992a10a211fa0c3 /app/controllers/issues_controller.rb | |
parent | 05ff5aa11ec61734a254237642a48d789fa33d6b (diff) | |
download | redmine-fccf15c2a242fff60b1ee55b7abbe132ba2aceea.tar.gz redmine-fccf15c2a242fff60b1ee55b7abbe132ba2aceea.zip |
Fixed: Private flag ignored when creating an issue with set_own_issues_private permission only (#8472).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5991 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/controllers/issues_controller.rb')
-rw-r--r-- | app/controllers/issues_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/issues_controller.rb b/app/controllers/issues_controller.rb index 8750ca87f..63ee316a3 100644 --- a/app/controllers/issues_controller.rb +++ b/app/controllers/issues_controller.rb @@ -301,6 +301,7 @@ private end @issue.project = @project + @issue.author = User.current # Tracker must be set before custom field values @issue.tracker ||= @project.trackers.find((params[:issue] && params[:issue][:tracker_id]) || params[:tracker_id] || :first) if @issue.tracker.nil? @@ -314,7 +315,6 @@ private @issue.watcher_user_ids = params[:issue]['watcher_user_ids'] end end - @issue.author = User.current @priorities = IssuePriority.all @allowed_statuses = @issue.new_statuses_allowed_to(User.current, true) end |