Merge branch 'bug/error-on-empty-choices' into 'develop'

Bug/error on empty choices - 1.1.0

See merge request framasoft/framadate!298
This commit is contained in:
Thomas Citharel 2018-04-15 11:29:27 +02:00
commit c723c81697
2 changed files with 2 additions and 2 deletions

View File

@ -206,7 +206,7 @@
</li>
<li class="hide">
<input type="radio" id="n-choice-{$id}" name="choices[{$id}]" value=" "
{(isset($selectedNewVotes[$id]) || ("" !== $selectedNewVotes[$id])) ? "" : " checked"}
{(isset($selectedNewVotes[$id]) && ("" !== $selectedNewVotes[$id])) ? "" : " checked"}
/>
</li>
</ul>

View File

@ -269,7 +269,7 @@
</li>
<li class="hide">
<input type="radio" id="n-choice-{$i}" name="choices[{$i}]" value=" "
{(isset($selectedNewVotes[$i]) || ("" !== $selectedNewVotes[$i])) ? "" : " checked"}
{(isset($selectedNewVotes[$i]) && ("" !== $selectedNewVotes[$i])) ? "" : " checked"}
/>
</li>
</ul>