|
@@ -264,7 +264,7 @@ class PODUserFilteredApiController(object):
|
264
|
264
|
for loNode in loNodeList:
|
265
|
265
|
loTmpDict[loNode.node_id] = loNode
|
266
|
266
|
|
267
|
|
- if loNode.parent_id==None:
|
|
267
|
+ if loNode.parent_id==None or loNode.parent_id==0:
|
268
|
268
|
loTreeList.append(loNode)
|
269
|
269
|
else:
|
270
|
270
|
# append the node to the parent list
|
|
@@ -273,8 +273,8 @@ class PODUserFilteredApiController(object):
|
273
|
273
|
# We suppose that the parent node has already been added
|
274
|
274
|
# this *should* be the case, but the code does not check it
|
275
|
275
|
if loNode.parent_id not in loTmpDict.keys():
|
276
|
|
- print('THE NODE =========',loNode.parent_id)
|
277
|
276
|
try:
|
|
277
|
+
|
278
|
278
|
loTmpDict[loNode.parent_id] = self.getNode(loNode.parent_id)
|
279
|
279
|
except Exception as e:
|
280
|
280
|
# loTreeList.append(
|