fix(WebForm): Replace get_cached_value with get_value

frappe.get_cached_value does not support filters
This commit is contained in:
Corentin Flr 2023-11-20 12:00:47 +01:00
parent d715b0ad31
commit 8b03a48f24
No known key found for this signature in database

View file

@ -684,7 +684,7 @@ def get_link_options(web_form_name, doctype, allow_read_on_all_link_options=Fals
frappe.get_cached_value("DocType", doctype, "show_title_field_in_link") == 1
)
if not show_title_field_in_link:
value = frappe.get_cached_value(
value = frappe.db.get_value(
"Property Setter",
fieldname="value",
filters={"property": "show_title_field_in_link", "doc_type": doctype},