Parcourir la source

fix: dont assume issingle exists (#18236) (#18252)

(cherry picked from commit 0e0e7f276c)

Co-authored-by: Ankush Menat <ankush@frappe.io>
version-14
mergify[bot] il y a 2 ans
committed by GitHub
Parent
révision
6164921304
Aucune clé connue n'a été trouvée dans la base pour cette signature ID de la clé GPG: 4AEE18F83AFDEB23
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. +2
    -2
      frappe/model/base_document.py

+ 2
- 2
frappe/model/base_document.py Voir le fichier

@@ -744,7 +744,7 @@ class BaseDocument:
# don't cache if fetching other values too
values = frappe.db.get_value(doctype, docname, values_to_fetch, as_dict=True)

if frappe.get_meta(doctype).issingle:
if getattr(frappe.get_meta(doctype), "issingle", 0):
values.name = doctype

if frappe.get_meta(doctype).get("is_virtual"):
@@ -884,7 +884,7 @@ class BaseDocument:
if frappe.flags.in_install:
return

if self.meta.issingle:
if getattr(self.meta, "issingle", 0):
# single doctype value type is mediumtext
return



Chargement…
Annuler
Enregistrer