Ver código fonte

:art: Add Relation column to database table view https://github.com/siyuan-note/siyuan/issues/9888

Daniel 1 ano atrás
pai
commit
c385471078
1 arquivos alterados com 4 adições e 0 exclusões
  1. 4 0
      kernel/model/attribute_view.go

+ 4 - 0
kernel/model/attribute_view.go

@@ -109,6 +109,10 @@ func SearchAttributeView(keyword string, page int, pageSize int) (ret []*SearchA
 		if nil != baseBlock {
 			hPath = baseBlock.HPath
 		}
+		box := Conf.Box(node.Box)
+		if nil != box {
+			hPath = box.Name + hPath
+		}
 
 		if !exist {
 			ret = append(ret, &SearchAttributeViewResult{