git-svn-id: http://svn.redmine.org/redmine/trunk@20357 e93f8b46-1217-0410-a6f0-8f06a7374b81tags/4.2.0
@@ -60,7 +60,10 @@ class IssueCategoriesController < ApplicationController | |||
redirect_to_settings_in_projects | |||
end | |||
format.js | |||
format.api { render :action => 'show', :status => :created, :location => issue_category_path(@category) } | |||
format.api do | |||
render(:action => 'show', :status => :created, | |||
:location => issue_category_path(@category)) | |||
end | |||
end | |||
else | |||
respond_to do |format| |