From 6cb016a7abf609aba877fee27b1c444c2bd73196 Mon Sep 17 00:00:00 2001 From: Daniela Soares Feitosa Date: Thu, 4 Jun 2009 18:54:06 -0300 Subject: [PATCH] ActionItem1084: folders should not be added in an article block --- app/views/box_organizer/_article_block.rhtml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/views/box_organizer/_article_block.rhtml b/app/views/box_organizer/_article_block.rhtml index bb54766..d388aa3 100644 --- a/app/views/box_organizer/_article_block.rhtml +++ b/app/views/box_organizer/_article_block.rhtml @@ -1 +1,2 @@ -<%= select('block', 'article_id', @block.box.owner.articles.map {|item| [ item.path, item.id]}) %> +<% articles = @block.box.owner.articles.select {|article| !article.folder? } %> +<%= select('block', 'article_id', articles.map {|item| [ item.path, item.id]}) %> -- libgit2 0.21.2