allow as_trees to deal with orphan children
This commit is contained in:
@@ -1 +1 @@
|
||||
Version 2.7.4-stable+timestamp.2013.10.20.22.54.26
|
||||
Version 2.7.4-stable+timestamp.2013.10.21.14.31.25
|
||||
|
||||
@@ -10658,6 +10658,7 @@ class Rows(object):
|
||||
for row in self:
|
||||
drows[row.id] = row
|
||||
row[children_name] = []
|
||||
for row in self:
|
||||
parent = row[parent_name]
|
||||
if parent is None:
|
||||
roots.append(row)
|
||||
|
||||
Reference in New Issue
Block a user