diff options
author | Go MAEDA <maeda@farend.jp> | 2023-02-05 23:30:46 +0000 |
---|---|---|
committer | Go MAEDA <maeda@farend.jp> | 2023-02-05 23:30:46 +0000 |
commit | 2496d4396b788995fe9f5f956be2a88d8198ca22 (patch) | |
tree | a781fcd3442315b0ca9d23b96ef1156dfd7ee562 /app/controllers/timelog_controller.rb | |
parent | ea4ce319feb5aebd835aa4e902cfecc36723eb7b (diff) | |
download | redmine-2496d4396b788995fe9f5f956be2a88d8198ca22.tar.gz redmine-2496d4396b788995fe9f5f956be2a88d8198ca22.zip |
Fix missing project_id in redirect after clicking "Create and add another" button (#35066).
Patch by Jérôme BATAILLE.
git-svn-id: https://svn.redmine.org/redmine/trunk@22096 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/controllers/timelog_controller.rb')
-rw-r--r-- | app/controllers/timelog_controller.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/controllers/timelog_controller.rb b/app/controllers/timelog_controller.rb index d4caca0f6..f6859597a 100644 --- a/app/controllers/timelog_controller.rb +++ b/app/controllers/timelog_controller.rb @@ -131,6 +131,7 @@ class TimelogController < ApplicationController :back_url => params[:back_url] } if params[:project_id] && @time_entry.project + options[:time_entry][:project_id] ||= @time_entry.project.id redirect_to new_project_time_entry_path(@time_entry.project, options) elsif params[:issue_id] && @time_entry.issue redirect_to new_issue_time_entry_path(@time_entry.issue, options) |