fix: revert changes in employee descendants query
diff --git a/erpnext/hr/doctype/employee/employee.py b/erpnext/hr/doctype/employee/employee.py
index 96046fb..5ca4756 100755
--- a/erpnext/hr/doctype/employee/employee.py
+++ b/erpnext/hr/doctype/employee/employee.py
@@ -477,14 +477,13 @@
return employee_emails
@frappe.whitelist()
-def get_children(doctype, parent=None, company=None, is_root=False, is_tree=False, fields=None):
+def get_children(doctype, parent=None, company=None, is_root=False, is_tree=False):
filters = [['status', '=', 'Active']]
if company and company != 'All Companies':
filters.append(['company', '=', company])
- if not fields:
- fields = ['name as value', 'employee_name as title']
+ fields = ['name as value', 'employee_name as title']
if is_root:
parent = ''