mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 22:50:13 +01:00
Signed-off-by: Daniel <845765@qq.com>
This commit is contained in:
parent
e8378c6261
commit
16a8e4926c
1 changed files with 4 additions and 3 deletions
|
|
@ -541,10 +541,11 @@ func (value *Value) filter(other *Value, relativeDate, relativeDate2 *RelativeDa
|
||||||
return !value.Checkbox.Checked
|
return !value.Checkbox.Checked
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
case KeyTypeRelation:
|
case KeyTypeRelation: // 过滤汇总字段,并且汇总目标是关联字段时才会进入该分支
|
||||||
if nil != value.Relation && 0 < len(value.Relation.Contents) && nil != value.Relation.Contents[0].Block &&
|
if nil != value.Relation && 0 < len(value.Relation.Contents) && nil != value.Relation.Contents[0].Block &&
|
||||||
nil != other && nil != other.Relation && 0 < len(other.Relation.Contents) && nil != other.Relation.Contents[0].Block {
|
nil != other && nil != other.Relation && 0 < len(other.Relation.BlockIDs) {
|
||||||
return filterTextContent(operator, value.Relation.Contents[0].Block.Content, other.Relation.Contents[0].Block.Content)
|
filterValue := &Value{Type: KeyTypeBlock, Block: &ValueBlock{Content: other.Relation.BlockIDs[0]}}
|
||||||
|
return filterTextContent(operator, value.Relation.Contents[0].Block.Content, filterValue.Block.Content)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return false
|
return false
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue