diff options
author | Jean-Baptiste Barth <jeanbaptiste.barth@gmail.com> | 2011-06-13 20:33:06 +0000 |
---|---|---|
committer | Jean-Baptiste Barth <jeanbaptiste.barth@gmail.com> | 2011-06-13 20:33:06 +0000 |
commit | ffe7aef0eada0a1e36ed0fc874a236af52cf98c1 (patch) | |
tree | 1861aa234b52dfe550f3a12a9c53e8890f28565c /app/controllers/documents_controller.rb | |
parent | d5cc7424a815a68a21ea080827f737d00b18e88e (diff) | |
download | redmine-ffe7aef0eada0a1e36ed0fc874a236af52cf98c1.tar.gz redmine-ffe7aef0eada0a1e36ed0fc874a236af52cf98c1.zip |
Do not show inactive document categories where not necessary (#8573).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6071 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/controllers/documents_controller.rb')
-rw-r--r-- | app/controllers/documents_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/documents_controller.rb b/app/controllers/documents_controller.rb index 118a7d99e..92a958f6c 100644 --- a/app/controllers/documents_controller.rb +++ b/app/controllers/documents_controller.rb @@ -57,7 +57,7 @@ class DocumentsController < ApplicationController end def edit - @categories = DocumentCategory.all + @categories = DocumentCategory.active #TODO: use it in the views if request.post? and @document.update_attributes(params[:document]) flash[:notice] = l(:notice_successful_update) redirect_to :action => 'show', :id => @document |