From 52c9c53562e056e411f23a795a163c747cfcaa8d Mon Sep 17 00:00:00 2001 From: Nicolas Bally Date: Sun, 16 May 2021 20:48:43 +0200 Subject: [PATCH] suite --- app/views/admin/blocks/_block.html.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/admin/blocks/_block.html.haml b/app/views/admin/blocks/_block.html.haml index fc0a661..171b664 100644 --- a/app/views/admin/blocks/_block.html.haml +++ b/app/views/admin/blocks/_block.html.haml @@ -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