fix: made course filter mandatory for course progress summary report
This commit is contained in:
@@ -8,7 +8,8 @@ frappe.query_reports["Course Progress Summary"] = {
|
|||||||
"fieldname": "course",
|
"fieldname": "course",
|
||||||
"label": __("Course"),
|
"label": __("Course"),
|
||||||
"fieldtype": "Link",
|
"fieldtype": "Link",
|
||||||
"options": "LMS Course"
|
"options": "LMS Course",
|
||||||
|
"reqd": 1,
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -57,7 +57,7 @@
|
|||||||
</span> {% endif %}
|
</span> {% endif %}
|
||||||
{% set avg_rating = course.get_average_rating() %}
|
{% set avg_rating = course.get_average_rating() %}
|
||||||
{% if avg_rating %}
|
{% if avg_rating %}
|
||||||
<span class="vertically-center ">
|
<span class="vertically-center">
|
||||||
<img class="icon-background" src="/assets/school/icons/rating.svg" />
|
<img class="icon-background" src="/assets/school/icons/rating.svg" />
|
||||||
{{ frappe.utils.flt(avg_rating, frappe.get_system_settings("float_precision") or 3) }}
|
{{ frappe.utils.flt(avg_rating, frappe.get_system_settings("float_precision") or 3) }}
|
||||||
</span>
|
</span>
|
||||||
|
|||||||
Reference in New Issue
Block a user