summaryrefslogtreecommitdiffstats
path: root/app/controllers
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2019-04-09 14:53:55 +0000
committerGo MAEDA <maeda@farend.jp>2019-04-09 14:53:55 +0000
commit7cf16d4abd3efde6444366d2ae9cebdb21c13713 (patch)
tree85b13f9afdca8243e2d6f8dfde622c6f8d0a775f /app/controllers
parentd953242e521592b84d4d2fe4378ceb127ec4eda3 (diff)
downloadredmine-7cf16d4abd3efde6444366d2ae9cebdb21c13713.tar.gz
redmine-7cf16d4abd3efde6444366d2ae9cebdb21c13713.zip
"Create and continue" button for custom fields (#31159).
Patch by Mizuki ISHIKAWA. git-svn-id: http://svn.redmine.org/redmine/trunk@18054 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/controllers')
-rw-r--r--app/controllers/custom_fields_controller.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/app/controllers/custom_fields_controller.rb b/app/controllers/custom_fields_controller.rb
index ebd4e9198..7f7beed64 100644
--- a/app/controllers/custom_fields_controller.rb
+++ b/app/controllers/custom_fields_controller.rb
@@ -48,7 +48,11 @@ class CustomFieldsController < ApplicationController
if @custom_field.save
flash[:notice] = l(:notice_successful_create)
call_hook(:controller_custom_fields_new_after_save, :params => params, :custom_field => @custom_field)
- redirect_to edit_custom_field_path(@custom_field)
+ if params[:continue]
+ redirect_to new_custom_field_path({:type => @custom_field.type})
+ else
+ redirect_to edit_custom_field_path(@custom_field)
+ end
else
render :action => 'new'
end