Browse Source

fix(nestedset): check if meta has nsm_parent_field

version-14
sahil28297 5 years ago
committed by GitHub
parent
commit
ac1c8c7c3f
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      frappe/utils/nestedset.py

+ 1
- 1
frappe/utils/nestedset.py View File

@@ -184,7 +184,7 @@ def validate_loop(doctype, name, lft, rgt):

class NestedSet(Document):
def __setup__(self):
if self.meta.nsm_parent_field:
if self.meta.get("nsm_parent_field"):
self.nsm_parent_field = self.meta.nsm_parent_field

def on_update(self):


Loading…
Cancel
Save