fix: can't select dynamic link on address doctype

This commit is contained in:
Ankush Menat 2022-06-17 14:14:44 +05:30 committed by Ankush Menat
parent 6d6a67e9e3
commit 8c6d266fad

View file

@ -170,7 +170,9 @@ def delete_contact_and_address(doctype, docname):
@frappe.whitelist()
@frappe.validate_and_sanitize_search_inputs
def filter_dynamic_link_doctypes(txt: str, filters: Dict) -> List[List[str]]:
def filter_dynamic_link_doctypes(
doctype, txt: str, searchfield, start, page_len, filters: Dict
) -> List[List[str]]:
from frappe.permissions import get_doctypes_with_read
txt = txt or ""