Commit 6cb016a7abf609aba877fee27b1c444c2bd73196

Authored by Daniela Feitosa
1 parent 87d67bcc

ActionItem1084: folders should not be added in an article block

Showing 1 changed file with 2 additions and 1 deletions   Show diff stats
app/views/box_organizer/_article_block.rhtml
1   -<%= select('block', 'article_id', @block.box.owner.articles.map {|item| [ item.path, item.id]}) %>
  1 +<% articles = @block.box.owner.articles.select {|article| !article.folder? } %>
  2 +<%= select('block', 'article_id', articles.map {|item| [ item.path, item.id]}) %>
... ...