Merge remote-tracking branch 'origin/dev' into dev

This commit is contained in:
Vanessa 2025-09-23 22:53:18 +08:00
commit 2279fbfe8a

View file

@ -541,6 +541,12 @@ func (value *Value) filter(other *Value, relativeDate, relativeDate2 *RelativeDa
return !value.Checkbox.Checked
}
}
case KeyTypeRelation: // 过滤汇总字段,并且汇总目标是关联字段时才会进入该分支
if nil != value.Relation && 0 < len(value.Relation.Contents) && nil != value.Relation.Contents[0].Block &&
nil != other && nil != other.Relation && 0 < len(other.Relation.BlockIDs) {
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
}