Skip to content

Commit

Permalink
Fix "without Category" category show when it doesn't have a list of l…
Browse files Browse the repository at this point in the history
…p - Refs #8026
  • Loading branch information
jloguercio committed Feb 12, 2016
1 parent f13a129 commit 2897dfd
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion main/template/default/learnpath/list.tpl
Expand Up @@ -13,7 +13,13 @@
{% for lp_data in data %}
<h3 class="page-header">
{% if (categories|length) > 1 %}
{{ lp_data.category.getName() }}
{% if lp_data.lp_list and lp_data.category.getId() != 0 %}
{{ lp_data.category.getName() }}
{% elseif lp_data.lp_list and lp_data.category.getId() == 0 %}
{{ lp_data.category.getName() }}
{% elseif not lp_data.lp_list and lp_data.category.getId() != 0 %}
{{ lp_data.category.getName() }}
{% endif %}
{% endif %}

{% if lp_data.category.getId() > 0 and is_allowed_to_edit %}
Expand Down

0 comments on commit 2897dfd

Please sign in to comment.