提交 54303ea3 编写于 作者: B Bai 提交者: Jiangjie.Bai

fix: 修复节点创建时更新孩子full_value日志输出问题

上级 4dcd8dd8
......@@ -491,8 +491,10 @@ class Node(OrgModelMixin, SomeNodesMixin, FamilyMixin, NodeAssetsMixin):
sort_key_func = lambda n: [int(i) for i in n.key.split(':')]
nodes_sorted = sorted(list(nodes), key=sort_key_func)
nodes_mapper = {n.key: n for n in nodes_sorted}
# 更新自己时,自己的parent_key获取不到
nodes_mapper.update({self.parent_key: self.parent})
if not self.is_org_root():
# 如果是org_root,那么parent_key为'', parent为自己,所以这种情况不处理
# 更新自己时,自己的parent_key获取不到
nodes_mapper.update({self.parent_key: self.parent})
for node in nodes_sorted:
parent = nodes_mapper.get(node.parent_key)
if not parent:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册