mirror of
https://github.com/frappe/erpnext.git
synced 2026-02-18 00:55:02 +00:00
fix: Add project filter in parent task field (#22655)
* fix: Add project filter in parent task field
This commit is contained in:
@@ -29,10 +29,16 @@ frappe.ui.form.on("Task", {
|
||||
filters: filters
|
||||
};
|
||||
})
|
||||
},
|
||||
|
||||
refresh: function (frm) {
|
||||
frm.set_query("parent_task", { "is_group": 1 });
|
||||
frm.set_query("parent_task", function () {
|
||||
let filters = {
|
||||
"is_group": 1
|
||||
};
|
||||
if (frm.doc.project) filters["project"] = frm.doc.project;
|
||||
return {
|
||||
filters: filters
|
||||
}
|
||||
});
|
||||
},
|
||||
|
||||
is_group: function (frm) {
|
||||
|
||||
Reference in New Issue
Block a user