mirror of
https://github.com/meineerde/redmine.git
synced 2026-01-10 01:21:32 +00:00
code layout clean up IssuesController#update_issue_from_params
git-svn-id: http://svn.redmine.org/redmine/trunk@19152 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
b5574321f9
commit
3b71b71710
@ -505,11 +505,11 @@ class IssuesController < ApplicationController
|
||||
if params[:time_entry]
|
||||
@time_entry.safe_attributes = params[:time_entry]
|
||||
end
|
||||
|
||||
@issue.init_journal(User.current)
|
||||
|
||||
issue_attributes = params[:issue]
|
||||
issue_attributes[:assigned_to_id] = User.current.id if issue_attributes && issue_attributes[:assigned_to_id] == 'me'
|
||||
if issue_attributes && issue_attributes[:assigned_to_id] == 'me'
|
||||
issue_attributes[:assigned_to_id] = User.current.id
|
||||
end
|
||||
if issue_attributes && params[:conflict_resolution]
|
||||
case params[:conflict_resolution]
|
||||
when 'overwrite'
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user