Commit
6cb016a7abf609aba877fee27b1c444c2bd73196
Exists in
master
and in
23 other branches
activate_plugin, api_fixies, api_tasks, article_blog_visualization_format, article_layout_refactoring, article_layout_temp, blog_page_bug, clone_article, communities_ratings, design_template, event_layout, fix_forum, fix_optional_fields, fix_suggest_article, folder_improvments, manage_organization, merge_deactive_and_ban, news_page, script_to_update, stable, template_mirror_block, tests, tests_fixies
ActionItem1084: folders should not be added in an article block
|
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]}) %> |