diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2016-07-17 06:35:28 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2016-07-17 06:35:28 +0000 |
commit | cad0036297bdecc13bcd5cb66f439081ca2bae9f (patch) | |
tree | 69b512a3feed4cbe400b56bee82fb6f70c6e25b8 /app/controllers/boards_controller.rb | |
parent | ff50094d3e45723e761c6980dfe1c5204facbd92 (diff) | |
download | redmine-cad0036297bdecc13bcd5cb66f439081ca2bae9f.tar.gz redmine-cad0036297bdecc13bcd5cb66f439081ca2bae9f.zip |
Use head instead of render :nothing => true.
git-svn-id: http://svn.redmine.org/redmine/trunk@15687 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/controllers/boards_controller.rb')
-rw-r--r-- | app/controllers/boards_controller.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/controllers/boards_controller.rb b/app/controllers/boards_controller.rb index 35e779370..df90f0db4 100644 --- a/app/controllers/boards_controller.rb +++ b/app/controllers/boards_controller.rb @@ -91,12 +91,12 @@ class BoardsController < ApplicationController flash[:notice] = l(:notice_successful_update) redirect_to_settings_in_projects } - format.js { render :nothing => true } + format.js { head 200 } end else respond_to do |format| format.html { render :action => 'edit' } - format.js { render :nothing => true, :status => 422 } + format.js { head 422 } end end end |