diff --git a/lms/lms/doctype/lms_course/lms_course.js b/lms/lms/doctype/lms_course/lms_course.js index 2fc82620..c08e1683 100644 --- a/lms/lms/doctype/lms_course/lms_course.js +++ b/lms/lms/doctype/lms_course/lms_course.js @@ -3,31 +3,31 @@ frappe.ui.form.on('LMS Course', { - onload: function (frm) { + onload: function (frm) { - frm.set_query("chapter", "chapters", function () { - return { - filters: { - "course": frm.doc.name, - } - }; - }); + frm.set_query("chapter", "chapters", function () { + return { + filters: { + "course": frm.doc.name, + } + }; + }); - frm.set_query("instructor", function (doc) { - return { - filters: { - "ignore_user_type": 1, - } - }; - }); + frm.set_query("instructor", "instructors", function () { + return { + filters: { + "ignore_user_type": 1, + } + }; + }); - frm.set_query("course", "related_courses", function () { - return { - filters: { - "published": true, - } - }; - }); - } + frm.set_query("course", "related_courses", function () { + return { + filters: { + "published": true, + } + }; + }); + } }); diff --git a/lms/www/dashboard/index.html b/lms/www/dashboard/index.html index 083cb524..d4897187 100644 --- a/lms/www/dashboard/index.html +++ b/lms/www/dashboard/index.html @@ -7,7 +7,7 @@ {% block content %} {% set portal_course_creation = frappe.db.get_single_value("LMS Settings", "portal_course_creation") %} {% set show_creators_section = portal_course_creation == "Anyone" or has_course_instructor_role() %} - +{{ frappe.session.user }}