From 20d222dcfe3d8f810fd7aafabd9005c45520b15f Mon Sep 17 00:00:00 2001
From: Olivier Perez <olivier@olivierperez.fr>
Date: Tue, 3 May 2016 23:31:44 +0200
Subject: [PATCH] Classical polls - Remove loops on moments

---
 tpl/part/vote_table_classic.tpl | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/tpl/part/vote_table_classic.tpl b/tpl/part/vote_table_classic.tpl
index c4e0d064..4a3c38ac 100644
--- a/tpl/part/vote_table_classic.tpl
+++ b/tpl/part/vote_table_classic.tpl
@@ -59,10 +59,8 @@
 
                     {$id=0}
                     {foreach $slots as $slot}
-                      {foreach $slot->moments as $moment}
                         {$choice=$vote->choices[$id]}
 
-
                         <td class="bg-info" headers="C{$id}">
                             <ul class="list-unstyled choice">
                                 <li class="yes">
@@ -90,7 +88,6 @@
                         </td>
 
                         {$id=$id + 1}
-                      {/foreach}
                     {/foreach}
 
                     <td style="padding:5px"><button type="submit" class="btn btn-success btn-xs" name="save" value="{$vote->id|html}" title="{__('Poll results', 'Save the choices')} {$vote->name|html}">{__('Generic', 'Save')}</button></td>
@@ -102,7 +99,6 @@
 
                     {$id=0}
                     {foreach $slots as $slot}
-                      {foreach $slot->moments as $moment}
                         {$choice=$vote->choices[$id]}
 
                         {if $choice=='2'}
@@ -116,7 +112,6 @@
                         {/if}
 
                         {$id=$id + 1}
-                      {/foreach}
                     {/foreach}
 
                     {if $active && !$expired && $accessGranted &&
-- 
GitLab