diff --git a/app/Resources/views/blog/planning.html.twig b/app/Resources/views/blog/planning.html.twig index e51ec7983..cb30ef5fb 100644 --- a/app/Resources/views/blog/planning.html.twig +++ b/app/Resources/views/blog/planning.html.twig @@ -44,7 +44,7 @@ {% for room in rooms %} {% if slot[room.id] is defined %} {% set rows = slot[room.id] %} - {% set numberOfRowForThisSlot = rows|first.length / prevision %} + {% set numberOfRowForThisSlot = rows[0].length / prevision %} {% set hasConf = hasConf|merge({(room.name|trim):numberOfRowForThisSlot}) %} {# Boucle pour afficher chaque événement dans la salle #}