mirror of
https://github.com/frappe/erpnext.git
synced 2026-04-28 11:08:32 +00:00
fix: adjust a few more queries
Signed-off-by: Akhil Narang <me@akhilnarang.dev>
This commit is contained in:
@@ -409,7 +409,9 @@ def get_children(doctype, parent, task=None, project=None, is_root=False):
|
||||
# via expand child
|
||||
filters.append(["parent_task", "=", parent])
|
||||
else:
|
||||
filters.append(['ifnull(`parent_task`, "")', "=", ""])
|
||||
from frappe.query_builder import Field, functions
|
||||
|
||||
filters.append(functions.IfNull(Field("parent_task"), "") == "")
|
||||
|
||||
if project:
|
||||
filters.append(["project", "=", project])
|
||||
|
||||
Reference in New Issue
Block a user