From 758f3ff0907f89f5b7b0f772e49490861dce527e Mon Sep 17 00:00:00 2001 From: Anand Chitipothu Date: Tue, 2 Mar 2021 07:04:24 +0000 Subject: [PATCH] Removed Form Scripts for course doctype. They are no longer required as we are using portal pages now. --- .../community/doctype/community_course/community_course.js | 5 ----- 1 file changed, 5 deletions(-) diff --git a/community/community/doctype/community_course/community_course.js b/community/community/doctype/community_course/community_course.js index db678744..c1f014ed 100644 --- a/community/community/doctype/community_course/community_course.js +++ b/community/community/doctype/community_course/community_course.js @@ -2,9 +2,4 @@ // For license information, please see license.txt frappe.ui.form.on('Community Course', { - before_submit: function (form) { - if (!form.doc.route) { - form.doc.route = "/courses/" + form.doc.name - } - } });