Explorar el Código

Fix $_configuration['course_student_info']['score'] setting BT#14877

Julio Montoya hace 6 años
padre
commit
79f7b0183e

+ 1 - 1
main/template/default/user_portal/classic_courses_with_category.tpl

@@ -72,7 +72,7 @@
                                         {% endif %}
                                         {% endif %}
                                     </div>
                                     </div>
                                     {% if item.student_info %}
                                     {% if item.student_info %}
-                                        {% if (item.student_info.progress is not null) and (item.student_info.score is not null) %}
+                                        {% if item.student_info.progress is not null or item.student_info.score is not null or item.student_info.certificate is not null %}
                                         <div class="course-student-info">
                                         <div class="course-student-info">
                                             <div class="student-info">
                                             <div class="student-info">
                                                 {% if (item.student_info.progress is not null) %}
                                                 {% if (item.student_info.progress is not null) %}

+ 1 - 1
main/template/default/user_portal/classic_courses_without_category.tpl

@@ -70,7 +70,7 @@
                                 {% endif %}
                                 {% endif %}
                             </div>
                             </div>
                             {% if item.student_info %}
                             {% if item.student_info %}
-                                {% if (item.student_info.progress is not null) and (item.student_info.score is not null) %}
+                                {% if item.student_info.progress is not null or item.student_info.score is not null or item.student_info.certificate is not null %}
                                     <div class="course-student-info">
                                     <div class="course-student-info">
                                         <div class="student-info">
                                         <div class="student-info">
                                             {% if (item.student_info.progress is not null) %}
                                             {% if (item.student_info.progress is not null) %}

+ 1 - 1
main/template/default/user_portal/classic_session.tpl

@@ -93,7 +93,7 @@
                                     </div>
                                     </div>
 
 
                                     {% if item.student_info %}
                                     {% if item.student_info %}
-                                        {% if (item.student_info.progress is not null) and (item.student_info.score is not null) %}
+                                        {% if item.student_info.progress is not null or item.student_info.score is not null or item.student_info.certificate is not null %}
                                             <div class="course-student-info">
                                             <div class="course-student-info">
                                                 <div class="student-info">
                                                 <div class="student-info">
                                                     {% if (item.student_info.progress is not null) %}
                                                     {% if (item.student_info.progress is not null) %}

+ 1 - 1
main/template/default/user_portal/grid_courses_with_category.tpl

@@ -67,7 +67,7 @@
                                         <div class="notifications">{{ item.notifications }}</div>
                                         <div class="notifications">{{ item.notifications }}</div>
                                     {% endif %}
                                     {% endif %}
                                     {% if item.student_info %}
                                     {% if item.student_info %}
-                                        {% if (item.student_info.progress is not null) and (item.student_info.score is not null) %}
+                                        {% if item.student_info.progress is not null or item.student_info.score is not null or item.student_info.certificate is not null %}
                                             <div class="course-student-info">
                                             <div class="course-student-info">
                                                 <div class="student-info">
                                                 <div class="student-info">
                                                     {% if (item.student_info.progress is not null) %}
                                                     {% if (item.student_info.progress is not null) %}

+ 2 - 2
main/template/default/user_portal/grid_courses_without_category.tpl

@@ -87,7 +87,7 @@
                                                     </a>
                                                     </a>
                                                 </h5>
                                                 </h5>
                                                 <p>{{ 'Teacher' | get_lang }}</p>
                                                 <p>{{ 'Teacher' | get_lang }}</p>
-                                            </div>                                       
+                                            </div>
                                         {% elseif item.teachers | length <= 6 %}
                                         {% elseif item.teachers | length <= 6 %}
                                             <a href="{{ teacher.url }}" class="ajax"
                                             <a href="{{ teacher.url }}" class="ajax"
                                                data-title="{{ teacher.firstname }} {{ teacher.lastname }}">
                                                data-title="{{ teacher.firstname }} {{ teacher.lastname }}">
@@ -101,7 +101,7 @@
                                 <div class="notifications">{{ item.notifications }}</div>
                                 <div class="notifications">{{ item.notifications }}</div>
                             {% endif %}
                             {% endif %}
                             {% if item.student_info %}
                             {% if item.student_info %}
-                                {% if (item.student_info.progress is not null) and (item.student_info.score is not null) %}
+                                {% if item.student_info.progress is not null or item.student_info.score is not null or item.student_info.certificate is not null %}
                                     <div class="course-student-info">
                                     <div class="course-student-info">
                                         <div class="student-info">
                                         <div class="student-info">
                                             {% if (item.student_info.progress is not null) %}
                                             {% if (item.student_info.progress is not null) %}

+ 1 - 1
main/template/default/user_portal/grid_session.tpl

@@ -93,7 +93,7 @@
                 </div>
                 </div>
                 {% if item.student_info %}
                 {% if item.student_info %}
                     <div class="black-student">
                     <div class="black-student">
-                    {% if (item.student_info.progress is not null) and (item.student_info.score is not null) %}
+                        {% if item.student_info.progress is not null or item.student_info.score is not null or item.student_info.certificate is not null %}
                         <div class="course-student-info">
                         <div class="course-student-info">
                             <div class="student-info">
                             <div class="student-info">
                                 {% if (item.student_info.progress is not null) %}
                                 {% if (item.student_info.progress is not null) %}