@@ -23,7 +23,7 class IssueCategoriesController < ApplicationController | |||||
23 | before_filter :find_project_by_project_id, :only => [:index, :new, :create] |
|
23 | before_filter :find_project_by_project_id, :only => [:index, :new, :create] | |
24 | before_filter :authorize |
|
24 | before_filter :authorize | |
25 | accept_api_auth :index, :show, :create, :update, :destroy |
|
25 | accept_api_auth :index, :show, :create, :update, :destroy | |
26 |
|
26 | |||
27 | def index |
|
27 | def index | |
28 | respond_to do |format| |
|
28 | respond_to do |format| | |
29 | format.html { redirect_to :controller => 'projects', :action => 'settings', :tab => 'categories', :id => @project } |
|
29 | format.html { redirect_to :controller => 'projects', :action => 'settings', :tab => 'categories', :id => @project } | |
@@ -92,7 +92,7 class IssueCategoriesController < ApplicationController | |||||
92 |
|
92 | |||
93 | def destroy |
|
93 | def destroy | |
94 | @issue_count = @category.issues.size |
|
94 | @issue_count = @category.issues.size | |
95 |
if @issue_count == 0 || params[:todo] || api_request? |
|
95 | if @issue_count == 0 || params[:todo] || api_request? | |
96 | reassign_to = nil |
|
96 | reassign_to = nil | |
97 | if params[:reassign_to_id] && (params[:todo] == 'reassign' || params[:todo].blank?) |
|
97 | if params[:reassign_to_id] && (params[:todo] == 'reassign' || params[:todo].blank?) | |
98 | reassign_to = @project.issue_categories.find_by_id(params[:reassign_to_id]) |
|
98 | reassign_to = @project.issue_categories.find_by_id(params[:reassign_to_id]) |
General Comments 0
You need to be logged in to leave comments.
Login now