This commit is contained in:
Nicolas Bally 2021-05-16 20:48:43 +02:00
parent b1c981493b
commit 52c9c53562

View File

@ -3,6 +3,6 @@
#block_portlet.block_portlets{:id => block.id, :"data-block_id"=>block.id, :class => ("block_portlets_sortable" if sortable).to_s}
=render :partial => "portlet/portlets/portlet", :collection => block.portlets.find(:all, :order => :position, :include => :content)
=render :partial => "portlet/portlets/portlet", :collection => block.portlets.order(:position).includes(:content).all