diff options
author | Go MAEDA <maeda@farend.jp> | 2019-02-05 08:33:29 +0000 |
---|---|---|
committer | Go MAEDA <maeda@farend.jp> | 2019-02-05 08:33:29 +0000 |
commit | 29063283da5d333b990e2ce3a8c6221133f305c9 (patch) | |
tree | 2b9ebb6c7003652a378010d65108caab5ab46c67 /app/controllers/application_controller.rb | |
parent | f4b2c1a0d3ea597fcaa8dd5a4fd7a2875a7241d3 (diff) | |
download | redmine-29063283da5d333b990e2ce3a8c6221133f305c9.tar.gz redmine-29063283da5d333b990e2ce3a8c6221133f305c9.zip |
Ajax Request Returns 200 but an error event is fired instead of success (#30073).
Patch by Pavel Rosický.
git-svn-id: http://svn.redmine.org/redmine/trunk@17849 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/controllers/application_controller.rb')
-rw-r--r-- | app/controllers/application_controller.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index 94f435948..2f0cfbf58 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -657,9 +657,9 @@ class ApplicationController < ActionController::Base render_error "An error occurred while executing the query and has been logged. Please report this error to your Redmine administrator." end - # Renders a 200 response for successful updates or deletions via the API + # Renders a 204 response for successful updates or deletions via the API def render_api_ok - render_api_head :ok + render_api_head :no_content end # Renders a head API response |