diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2010-11-17 18:27:38 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2010-11-17 18:27:38 +0000 |
commit | 8bb75da1acf91af4866d4b4e10612c2fb82a0b48 (patch) | |
tree | 12dd16da2e440f6f49757b402eca92accd4abbf6 /app/controllers/issues_controller.rb | |
parent | 3ba3c540fbb2e58f64c839b2a2f8fc4913f94959 (diff) | |
download | redmine-8bb75da1acf91af4866d4b4e10612c2fb82a0b48.tar.gz redmine-8bb75da1acf91af4866d4b4e10612c2fb82a0b48.zip |
Initialize TimeEntry attributes with params when editing an issue (#5441).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4411 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/controllers/issues_controller.rb')
-rw-r--r-- | app/controllers/issues_controller.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/controllers/issues_controller.rb b/app/controllers/issues_controller.rb index befc88f78..02d97643a 100644 --- a/app/controllers/issues_controller.rb +++ b/app/controllers/issues_controller.rb @@ -269,6 +269,7 @@ private @priorities = IssuePriority.all @edit_allowed = User.current.allowed_to?(:edit_issues, @project) @time_entry = TimeEntry.new + @time_entry.attributes = params[:time_entry] @notes = params[:notes] || (params[:issue].present? ? params[:issue][:notes] : nil) @issue.init_journal(User.current, @notes) |