Commit c8faf7db05c92db3105f666b5cff64621924d608
Exists in
master
and in
27 other branches
Merge branch 'I393-container_block_crashing' into 'master'
I393 container block crashing https://gitlab.com/participa/noosfero/issues/392 Container block está quebrando o ambiente Verificar a chamada box_decorator.select_blocks no plugin container block que não funciona Leandro Nunes @leandronunes 4 days ago ActionView::Template::Error (wrong number of arguments (2 for 3)): 10: 11: 12: 13: @page, :request_path => request.path, :locale => locale }).each do |child| %> 14: #block- #block- { width: px; } 15: 16: app/helpers/boxes_helper.rb:159:in select_blocks' config/plugins/container_block/views/blocks/container.html.erb:13:inconfig_plugins_container_block_views_blocks_container_html_erb2028328020366621965_95207380' config/plugins/container_block/lib/container_block_plugin/container_block.rb:72:in block in content' app/helpers/boxes_helper.rb:139:ininstance_eval' app/helpers/boxes_helper.rb:139:in extract_block_content' app/helpers/boxes_helper.rb:92:indisplay_block_content' app/views/shared/block.html.erb:6:in `app_views_sharedblock_html_erb2640157230203373045_95178980' app/helpers/boxes_helper.rb:83:in display_block' app/helpers/boxes_helper.rb:74:inblock in display_box_content' app/helpers/boxes_helper.rb:73:in map' app/helpers/boxes_helper.rb:73:indisplay_box_content' app/helpers/boxeshelper.rb:62:in display_box' app/helpers/boxes_helper.rb:47:inblock in display_boxes' app/helpers/boxes_helper.rb:47:in map' app/helpers/boxes_helper.rb:47:indisplay_boxes' app/helpers/boxes_helper.rb:9:in `insert_boxes' See merge request !490
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
plugins/container_block/views/blocks/container.html.erb
... | ... | @@ -10,7 +10,7 @@ |
10 | 10 | <div class="clear"></div> |
11 | 11 | |
12 | 12 | <style> |
13 | - <% box_decorator.select_blocks(block.blocks, { :article => @page, :request_path => request.path, :locale => locale }).each do |child| %> | |
13 | + <% box_decorator.select_blocks(block, block.blocks, { :article => @page, :request_path => request.path, :locale => locale, params: request.params, controller: controller}).each do |child| %> | |
14 | 14 | #block-<%=block.id%> #block-<%=child.id%> { width: <%= block.child_width(child.id) %>px; } |
15 | 15 | <% end %> |
16 | 16 | </style> | ... | ... |