remove trailing white-spaces from app/controllers/issue_categories_controller.rb
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10622 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
7b5d15eca8
commit
3bda16f825
|
@ -23,7 +23,7 @@ class IssueCategoriesController < ApplicationController
|
||||||
before_filter :find_project_by_project_id, :only => [:index, :new, :create]
|
before_filter :find_project_by_project_id, :only => [:index, :new, :create]
|
||||||
before_filter :authorize
|
before_filter :authorize
|
||||||
accept_api_auth :index, :show, :create, :update, :destroy
|
accept_api_auth :index, :show, :create, :update, :destroy
|
||||||
|
|
||||||
def index
|
def index
|
||||||
respond_to do |format|
|
respond_to do |format|
|
||||||
format.html { redirect_to :controller => 'projects', :action => 'settings', :tab => 'categories', :id => @project }
|
format.html { redirect_to :controller => 'projects', :action => 'settings', :tab => 'categories', :id => @project }
|
||||||
|
@ -92,7 +92,7 @@ class IssueCategoriesController < ApplicationController
|
||||||
|
|
||||||
def destroy
|
def destroy
|
||||||
@issue_count = @category.issues.size
|
@issue_count = @category.issues.size
|
||||||
if @issue_count == 0 || params[:todo] || api_request?
|
if @issue_count == 0 || params[:todo] || api_request?
|
||||||
reassign_to = nil
|
reassign_to = nil
|
||||||
if params[:reassign_to_id] && (params[:todo] == 'reassign' || params[:todo].blank?)
|
if params[:reassign_to_id] && (params[:todo] == 'reassign' || params[:todo].blank?)
|
||||||
reassign_to = @project.issue_categories.find_by_id(params[:reassign_to_id])
|
reassign_to = @project.issue_categories.find_by_id(params[:reassign_to_id])
|
||||||
|
|
Loading…
Reference in New Issue