fix: circular loop in project task (#25454)

* fix: circular loop in project task
This commit is contained in:
Shadrak Gurupnor 2021-04-26 11:14:07 +05:30 committed by GitHub
parent 9d6520d4a7
commit b9d4719285
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -32,7 +32,8 @@ frappe.ui.form.on("Task", {
frm.set_query("parent_task", function () { frm.set_query("parent_task", function () {
let filters = { let filters = {
"is_group": 1 "is_group": 1,
"name": ["!=", frm.doc.name]
}; };
if (frm.doc.project) filters["project"] = frm.doc.project; if (frm.doc.project) filters["project"] = frm.doc.project;
return { return {