From: Toshi MARUYAMA Date: Mon, 9 Nov 2020 13:24:14 +0000 (+0000) Subject: use "do end" instead of {} at IssuesController X-Git-Tag: 4.2.0~508 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=7ad9065c018f994dca25a7cea2deff3b3ee788a8;p=redmine.git use "do end" instead of {} at IssuesController git-svn-id: http://svn.redmine.org/redmine/trunk@20310 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/app/controllers/issues_controller.rb b/app/controllers/issues_controller.rb index 4eb1da96d..ce4e5814b 100644 --- a/app/controllers/issues_controller.rb +++ b/app/controllers/issues_controller.rb @@ -448,10 +448,10 @@ class IssuesController < ApplicationController end end respond_to do |format| - format.html { + format.html do flash[:notice] = l(:notice_successful_delete) redirect_back_or_default _project_issues_path(@project) - } + end format.api {render_api_ok} end end