flash[:notice] = l(:notice_successful_create)
Mailer.deliver_issue_add(@issue) if Setting.notified_events.include?('issue_added')
call_hook(:controller_issues_new_after_save, { :params => params, :issue => @issue})
- redirect_to :controller => 'issues', :action => 'show', :id => @issue
+ redirect_to(params[:continue] ? { :action => 'new', :tracker_id => @issue.tracker } :
+ { :action => 'show', :id => @issue })
return
end
end
<%= render :partial => 'issues/form', :locals => {:f => f} %>
</div>
<%= submit_tag l(:button_create) %>
+ <%= submit_tag l(:button_create_and_continue), :name => 'continue' %>
<%= link_to_remote l(:label_preview),
{ :url => { :controller => 'issues', :action => 'preview', :project_id => @project },
:method => 'post',
setting_diff_max_lines_displayed: Max number of diff lines displayed
text_plugin_assets_writable: Plugin assets directory writable
warning_attachments_not_saved: "%d file(s) could not be saved."
+button_create_and_continue: Create and continue
setting_diff_max_lines_displayed: Max number of diff lines displayed\r
text_plugin_assets_writable: Plugin assets directory writable\r
warning_attachments_not_saved: "%d file(s) could not be saved."\r
+button_create_and_continue: Create and continue\r
setting_diff_max_lines_displayed: Max number of diff lines displayed
text_plugin_assets_writable: Plugin assets directory writable
warning_attachments_not_saved: "%d file(s) could not be saved."
+button_create_and_continue: Create and continue
setting_diff_max_lines_displayed: Max number of diff lines displayed
text_plugin_assets_writable: Plugin assets directory writable
warning_attachments_not_saved: "%d file(s) could not be saved."
+button_create_and_continue: Create and continue
enumeration_activities: Aktivitäten (Zeiterfassung)
text_plugin_assets_writable: Plugin assets directory writable
warning_attachments_not_saved: "%d file(s) could not be saved."
+button_create_and_continue: Create and continue
button_uncheck_all: Uncheck all
button_delete: Delete
button_create: Create
+button_create_and_continue: Create and continue
button_test: Test
button_edit: Edit
button_add: Add
text_workflow_edit: Seleccionar un flujo de trabajo para actualizar
text_plugin_assets_writable: Plugin assets directory writable
warning_attachments_not_saved: "%d file(s) could not be saved."
+button_create_and_continue: Create and continue
setting_diff_max_lines_displayed: Max number of diff lines displayed
text_plugin_assets_writable: Plugin assets directory writable
warning_attachments_not_saved: "%d file(s) could not be saved."
+button_create_and_continue: Create and continue
button_uncheck_all: Tout décocher
button_delete: Supprimer
button_create: Créer
+button_create_and_continue: Créer et continuer
button_test: Tester
button_edit: Modifier
button_add: Ajouter
text_plugin_assets_writable: Plugin assets directory writable
text_diff_truncated: '... This diff was truncated because it exceeds the maximum size that can be displayed.'
warning_attachments_not_saved: "%d file(s) could not be saved."
+button_create_and_continue: Create and continue
setting_diff_max_lines_displayed: A megjelenítendő sorok száma (maximum) a diff fájloknál
text_plugin_assets_writable: Plugin assets directory writable
warning_attachments_not_saved: "%d file(s) could not be saved."
+button_create_and_continue: Create and continue
setting_diff_max_lines_displayed: Max number of diff lines displayed
text_plugin_assets_writable: Plugin assets directory writable
warning_attachments_not_saved: "%d file(s) could not be saved."
+button_create_and_continue: Create and continue
setting_diff_max_lines_displayed: Max number of diff lines displayed
text_plugin_assets_writable: Plugin assets directory writable
warning_attachments_not_saved: "%d file(s) could not be saved."
+button_create_and_continue: Create and continue
setting_diff_max_lines_displayed: 차이점보기에 표시할 최대 줄수
text_plugin_assets_writable: Plugin assets directory writable
warning_attachments_not_saved: "%d file(s) could not be saved."
+button_create_and_continue: Create and continue
enumeration_activities: Veiklos (laiko sekimas)
text_plugin_assets_writable: Plugin assets directory writable
warning_attachments_not_saved: "%d file(s) could not be saved."
+button_create_and_continue: Create and continue
setting_diff_max_lines_displayed: Max number of diff lines displayed
text_plugin_assets_writable: Plugin assets directory writable
warning_attachments_not_saved: "%d file(s) could not be saved."
+button_create_and_continue: Create and continue
setting_diff_max_lines_displayed: Max number of diff lines displayed
text_plugin_assets_writable: Plugin assets directory writable
warning_attachments_not_saved: "%d file(s) could not be saved."
+button_create_and_continue: Create and continue
setting_diff_max_lines_displayed: Maksymalna liczba linii różnicy do pokazania
text_plugin_assets_writable: Plugin assets directory writable
warning_attachments_not_saved: "%d file(s) could not be saved."
+button_create_and_continue: Create and continue
setting_diff_max_lines_displayed: Max number of diff lines displayed\r
text_plugin_assets_writable: Plugin assets directory writable\r
warning_attachments_not_saved: "%d file(s) could not be saved."\r
+button_create_and_continue: Create and continue\r
setting_diff_max_lines_displayed: Número máximo de linhas de diff mostradas
text_plugin_assets_writable: Plugin assets directory writable
warning_attachments_not_saved: "%d file(s) could not be saved."
+button_create_and_continue: Create and continue
setting_diff_max_lines_displayed: Max number of diff lines displayed
text_plugin_assets_writable: Plugin assets directory writable
warning_attachments_not_saved: "%d file(s) could not be saved."
+button_create_and_continue: Create and continue
text_plugin_assets_writable: Plugin assets directory writable
warning_attachments_not_saved: "%d file(s) could not be saved."
+button_create_and_continue: Create and continue
setting_diff_max_lines_displayed: Max number of diff lines displayed\r
text_plugin_assets_writable: Plugin assets directory writable\r
warning_attachments_not_saved: "%d file(s) could not be saved."\r
+button_create_and_continue: Create and continue\r
setting_diff_max_lines_displayed: Max number of diff lines displayed
text_plugin_assets_writable: Plugin assets directory writable
warning_attachments_not_saved: "%d file(s) could not be saved."
+button_create_and_continue: Create and continue
enumeration_activities: Aktiviteter (tidsuppföljning)
text_plugin_assets_writable: Plugin assets directory writable
warning_attachments_not_saved: "%d file(s) could not be saved."
+button_create_and_continue: Create and continue
setting_diff_max_lines_displayed: Max number of diff lines displayed
text_plugin_assets_writable: Plugin assets directory writable
warning_attachments_not_saved: "%d file(s) could not be saved."
+button_create_and_continue: Create and continue
setting_diff_max_lines_displayed: Max number of diff lines displayed
text_plugin_assets_writable: Plugin assets directory writable
warning_attachments_not_saved: "%d file(s) could not be saved."
+button_create_and_continue: Create and continue
setting_diff_max_lines_displayed: Max number of diff lines displayed
text_plugin_assets_writable: Plugin assets directory writable
warning_attachments_not_saved: "%d file(s) could not be saved."
+button_create_and_continue: Create and continue
setting_diff_max_lines_displayed: Max number of diff lines displayed\r
text_plugin_assets_writable: Plugin assets directory writable\r
warning_attachments_not_saved: "%d file(s) could not be saved."\r
+button_create_and_continue: Create and continue\r
enumeration_activities: 活動 (時間追蹤)
text_plugin_assets_writable: Plugin assets directory writable
warning_attachments_not_saved: "%d file(s) could not be saved."
+button_create_and_continue: Create and continue
enumeration_activities: 活动(时间跟踪)
text_plugin_assets_writable: Plugin assets directory writable
warning_attachments_not_saved: "%d file(s) could not be saved."
+button_create_and_continue: Create and continue
assert_equal 'Value for field 2', v.value
end
+ def test_post_new_and_continue
+ @request.session[:user_id] = 2
+ post :new, :project_id => 1,
+ :issue => {:tracker_id => 3,
+ :subject => 'This is first issue',
+ :priority_id => 5},
+ :continue => ''
+ assert_redirected_to :controller => 'issues', :action => 'new', :tracker_id => 3
+ end
+
def test_post_new_without_custom_fields_param
@request.session[:user_id] = 2
post :new, :project_id => 1,