summaryrefslogtreecommitdiffstats
path: root/app/controllers/issue_categories_controller.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/controllers/issue_categories_controller.rb')
-rw-r--r--app/controllers/issue_categories_controller.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/controllers/issue_categories_controller.rb b/app/controllers/issue_categories_controller.rb
index 8c077cf7a..2904c2399 100644
--- a/app/controllers/issue_categories_controller.rb
+++ b/app/controllers/issue_categories_controller.rb
@@ -18,6 +18,7 @@
class IssueCategoriesController < ApplicationController
menu_item :settings
before_filter :find_category, :except => :new
+ before_filter :find_project_from_association, :except => :new
before_filter :find_project, :only => :new
before_filter :authorize
@@ -73,8 +74,7 @@ class IssueCategoriesController < ApplicationController
private
def find_category
- @category = IssueCategory.find(params[:id])
- @project = @category.project
+ @category = @object = IssueCategory.find(params[:id])
rescue ActiveRecord::RecordNotFound
render_404
end