summaryrefslogtreecommitdiffstats
path: root/app/views
diff options
context:
space:
mode:
authorJean-Baptiste Barth <jeanbaptiste.barth@gmail.com>2011-06-13 20:33:06 +0000
committerJean-Baptiste Barth <jeanbaptiste.barth@gmail.com>2011-06-13 20:33:06 +0000
commitffe7aef0eada0a1e36ed0fc874a236af52cf98c1 (patch)
tree1861aa234b52dfe550f3a12a9c53e8890f28565c /app/views
parentd5cc7424a815a68a21ea080827f737d00b18e88e (diff)
downloadredmine-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/views')
-rw-r--r--app/views/documents/_form.rhtml2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/documents/_form.rhtml b/app/views/documents/_form.rhtml
index b118ebdcf..3e805c198 100644
--- a/app/views/documents/_form.rhtml
+++ b/app/views/documents/_form.rhtml
@@ -2,7 +2,7 @@
<div class="box">
<!--[form:document]-->
<p><label for="document_category_id"><%=l(:field_category)%></label>
-<%= select('document', 'category_id', DocumentCategory.all.collect {|c| [c.name, c.id]}) %></p>
+<%= select('document', 'category_id', DocumentCategory.active.collect {|c| [c.name, c.id]}) %></p>
<p><label for="document_title"><%=l(:field_title)%> <span class="required">*</span></label>
<%= text_field 'document', 'title', :size => 60 %></p>