Skip to content

Commit 927a980

Browse files
committed
only select document names from approved doc typs
1 parent 243f764 commit 927a980

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/controllers/documents_controller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ def set_services
165165
end
166166

167167
def set_document_names
168-
@document_names = DocumentType.order('name ASC')
168+
@document_names = DocumentType.where(status: 'approved').order('name ASC')
169169
end
170170

171171
def set_crawlers

0 commit comments

Comments
 (0)