fix: implicit user

This commit is contained in:
Summayya
2021-08-24 17:27:16 +05:30
parent b0280c3be4
commit 3e24ff9678
2 changed files with 5 additions and 1 deletions

View File

@@ -1,4 +1,8 @@
frappe.ready(function () {
frappe.web_form.after_load = () => {
frappe.web_form.set_value("user", frappe.session.user);
}
frappe.web_form.after_save = () => {
setTimeout(function () {
window.location.href = '/about';