fix in nestedset
This commit is contained in:
parent
876a748f90
commit
cd63c2c119
1 changed files with 1 additions and 1 deletions
|
|
@ -71,7 +71,7 @@ def update_add_node(doc, parent, parent_field):
|
|||
validate_loop(doc.doctype, doc.name, left, right)
|
||||
else: # root
|
||||
right = frappe.db.sql("select ifnull(max(rgt),0)+1 from `tab%s` \
|
||||
where ifnull(`%s`,'') =''", (doctype, parent_field))[0][0]
|
||||
where ifnull(`%s`,'') =''" % (doctype, parent_field))[0][0]
|
||||
right = right or 1
|
||||
|
||||
# update all on the right
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue