Merge pull request #23302 from cogk/fix-webform-get-cached-value

fix(WebForm): Replace `get_cached_value` with `get_value`
This commit is contained in:
Ankush Menat 2023-11-20 16:45:43 +05:30 committed by GitHub
commit 49a0f75782
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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},