fix: user type filter on assignment submission

This commit is contained in:
Jannat Patel
2023-11-07 11:42:31 +05:30
parent 7250bf7d65
commit 41b076c0db
2 changed files with 10 additions and 3 deletions

View File

@@ -2,6 +2,13 @@
// For license information, please see license.txt
frappe.ui.form.on("LMS Assignment Submission", {
// refresh: function(frm) {
// }
onload: function (frm) {
frm.set_query("member", function (doc) {
return {
filters: {
ignore_user_type: 1,
},
};
});
},
});

View File

@@ -43,7 +43,7 @@ class LMSAssignmentSubmission(Document):
}
moderators = frappe.get_all("Has Role", {"role": "Moderator"}, pluck="parent")
print(moderators)
if custom_template:
email_template = get_email_template(custom_template, args)
subject = email_template.get("subject")