summaryrefslogtreecommitdiffstats
path: root/app/controllers/issue_statuses_controller.rb
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2024-06-12 16:09:37 +0000
committerGo MAEDA <maeda@farend.jp>2024-06-12 16:09:37 +0000
commitb803bddb1f32842b0a5ec93640778d902b5f7999 (patch)
treefb1dba7c75c0dc0111516d2d4384b89ecefb5e1a /app/controllers/issue_statuses_controller.rb
parente41bc39322cae528d1c24256f6f404f5937d78ab (diff)
downloadredmine-b803bddb1f32842b0a5ec93640778d902b5f7999.tar.gz
redmine-b803bddb1f32842b0a5ec93640778d902b5f7999.zip
Fix "ArgumentError: Invalid response name: unprocessable_entity" with Rack 3.1.0+ in assert_response (#39889).
Rack 3.1.0 changed the symbol for HTTP status code 422 from `:unprocessable_entity` to `:unprocessable_content`. Due to the change, `assert_response(:unprocessable_entity, ...)` raises ArgumentError with Rack 3.1.0+. This fix is a follow-up to r22837. git-svn-id: https://svn.redmine.org/redmine/trunk@22876 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/controllers/issue_statuses_controller.rb')
-rw-r--r--app/controllers/issue_statuses_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/issue_statuses_controller.rb b/app/controllers/issue_statuses_controller.rb
index 0d6e2199e..e0dc2c704 100644
--- a/app/controllers/issue_statuses_controller.rb
+++ b/app/controllers/issue_statuses_controller.rb
@@ -66,7 +66,7 @@ class IssueStatusesController < ApplicationController
else
respond_to do |format|
format.html {render :action => 'edit'}
- format.js {head :unprocessable_entity}
+ format.js {head :unprocessable_content}
end
end
end