mirror of
https://github.com/redmine/redmine.git
synced 2026-07-31 05:01:21 +02:00
"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
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user