mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-17 15:10:12 +01:00
🎨 Improve database field default filling https://github.com/siyuan-note/siyuan/issues/11966
This commit is contained in:
parent
0239128a29
commit
fc4938829f
1 changed files with 5 additions and 0 deletions
|
|
@ -81,6 +81,11 @@ func GetAttrViewAddingBlockDefaultValues(avID, viewID, groupID, previousBlockID,
|
||||||
func getAttrViewAddingBlockDefaultValues(attrView *av.AttributeView, view, groupView *av.View, previousBlockID, addingBlockID string) (ret map[string]*av.Value) {
|
func getAttrViewAddingBlockDefaultValues(attrView *av.AttributeView, view, groupView *av.View, previousBlockID, addingBlockID string) (ret map[string]*av.Value) {
|
||||||
ret = map[string]*av.Value{}
|
ret = map[string]*av.Value{}
|
||||||
|
|
||||||
|
if 1 > len(view.Filters) && nil == view.Group {
|
||||||
|
// 没有过滤条件也没有分组条件时忽略
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
nearItem := getNearItem(attrView, view, groupView, previousBlockID)
|
nearItem := getNearItem(attrView, view, groupView, previousBlockID)
|
||||||
filterKeyIDs := map[string]bool{}
|
filterKeyIDs := map[string]bool{}
|
||||||
for _, f := range view.Filters {
|
for _, f := range view.Filters {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue