Ajout d'un test pour éliminer les colonnes choices vides dans la table fd_vote (#4617)
This commit is contained in:
parent
9068919c47
commit
f1587f7b36
@ -113,8 +113,12 @@
|
|||||||
{$k=0}
|
{$k=0}
|
||||||
{foreach $slots as $slot}
|
{foreach $slots as $slot}
|
||||||
{foreach $slot->moments as $moment}
|
{foreach $slot->moments as $moment}
|
||||||
{$choice=$vote->choices[$k]}
|
|
||||||
|
|
||||||
|
{if sizeof($vote->choices)==1 && strlen($vote->choices[0])==0}
|
||||||
|
{$choice=' '}
|
||||||
|
{else}
|
||||||
|
{$choice=$vote->choices[$k]}
|
||||||
|
{/if}
|
||||||
|
|
||||||
<td class="bg-info" headers="M{$headersM[$k]} D{$headersD[$k]} H{$headersH[$k]}">
|
<td class="bg-info" headers="M{$headersM[$k]} D{$headersD[$k]} H{$headersH[$k]}">
|
||||||
<ul class="list-unstyled choice">
|
<ul class="list-unstyled choice">
|
||||||
@ -176,7 +180,12 @@
|
|||||||
{$k=0}
|
{$k=0}
|
||||||
{foreach $slots as $slot}
|
{foreach $slots as $slot}
|
||||||
{foreach $slot->moments as $moment}
|
{foreach $slot->moments as $moment}
|
||||||
{$choice=$vote->choices[$k]}
|
|
||||||
|
{if sizeof($vote->choices)==1 && strlen($vote->choices[0])==0}
|
||||||
|
{$choice=' '}
|
||||||
|
{else}
|
||||||
|
{$choice=$vote->choices[$k]}
|
||||||
|
{/if}
|
||||||
|
|
||||||
{if $choice=='2'}
|
{if $choice=='2'}
|
||||||
<td class="bg-success text-success" headers="M{$headersM[$k]} D{$headersD[$k]} H{$k}"><i class="glyphicon glyphicon-ok"></i><span class="sr-only">{__('Generic', 'Yes')}</span></td>
|
<td class="bg-success text-success" headers="M{$headersM[$k]} D{$headersD[$k]} H{$k}"><i class="glyphicon glyphicon-ok"></i><span class="sr-only">{__('Generic', 'Yes')}</span></td>
|
||||||
|
Loading…
Reference in New Issue
Block a user