Parcourir la source

fix(User Type): Select perms not updated for link fields in child table

version-14
Rucha Mahabal il y a 3 ans
Parent
révision
e88707a8d4
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. +1
    -1
      frappe/core/doctype/user_type/user_type.py

+ 1
- 1
frappe/core/doctype/user_type/user_type.py Voir le fichier

@@ -121,7 +121,7 @@ class UserType(Document):


for child_table in doc.get_table_fields(): for child_table in doc.get_table_fields():
child_doc = frappe.get_meta(child_table.options) child_doc = frappe.get_meta(child_table.options)
if not child_doc.istable:
if child_doc:
self.prepare_select_perm_doctypes(child_doc, user_doctypes, select_doctypes) self.prepare_select_perm_doctypes(child_doc, user_doctypes, select_doctypes)


if select_doctypes: if select_doctypes:


Chargement…
Annuler
Enregistrer