diff --git a/erpnext/public/js/education/lms/components/TopicCard.vue b/erpnext/public/js/education/lms/components/TopicCard.vue index 609fcd60098..18574fb5959 100644 --- a/erpnext/public/js/education/lms/components/TopicCard.vue +++ b/erpnext/public/js/education/lms/components/TopicCard.vue @@ -97,7 +97,7 @@ export default { if(content_type == 'Quiz') return 'fa fa-question-circle-o' }, getTopicMeta() { - return lms.call('get_topic_meta', { + return lms.call('get_student_topic_details', { topic_name: this.topic.name, course_name: this.course_name, }) diff --git a/erpnext/www/lms.py b/erpnext/www/lms.py index 0d342e3ec22..6624c46171d 100644 --- a/erpnext/www/lms.py +++ b/erpnext/www/lms.py @@ -195,7 +195,7 @@ def get_student_course_details(course_name, program_name): return {'flag':'Continue'} @frappe.whitelist() -def get_topic_meta(topic_name, course_name): +def get_student_topic_details(topic_name, course_name): """ Return the porgress of a course in a program as well as the content to continue from. :param topic_name: