Skip to content

Commit

Permalink
Fixed issue #18957: Ranking Advanced: Visualization Types are not wor…
Browse files Browse the repository at this point in the history
…king (#3479)

Co-authored-by: lapiudevgit <devgit@lapiu.biz>
  • Loading branch information
gabrieljenik and lapiudevgit committed Oct 5, 2023
1 parent b947dc7 commit e44d316
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@
{# rows/answer_row.twig #}
{{sSelects}}
</ul>
{% set rankingView = './views/' ~ question_template_attribute.visualize ~ '.twig' %}
{% set rankingView = './views/blocks.twig' %}
{% set visualization = (question_template_attribute.visualize is not empty) ? question_template_attribute.visualize : "blocks" %}
{% set rankingView = './views/' ~ visualization ~ '.twig' %}
{{ include(rankingView) }}
</div>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,6 @@
<inputtype>singleselect</inputtype>
<options>
<list>List</list>
<bubbles>Bubbles</bubbles>
<blocks>Blocks</blocks>
<buttons>Buttons</buttons>
</options>
Expand Down
1 change: 1 addition & 0 deletions themes/question/ranking_advanced/views/bubbles.twig
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{# Bubbles view is not mature enough for usage yet #}
{% extends "./views/basic.twig" %}
{% block choice %}
<div class="col-12 ranking-advanced-available-items">
Expand Down

0 comments on commit e44d316

Please sign in to comment.