🐛 Database relative date filtering is incorrect https://github.com/siyuan-note/siyuan/issues/15710

This commit is contained in:
Daniel 2025-08-28 15:35:09 +08:00
parent c2ef8de766
commit 0f087bf1e4
No known key found for this signature in database
GPG key ID: 86211BA83DF03017

View file

@ -285,11 +285,9 @@ func (value *Value) filter(other *Value, relativeDate, relativeDate2 *RelativeDa
}
}
case KeyTypeDate:
if nil != value.Date && nil != other && nil != other.Date {
if !other.Date.IsNotEmpty {
if nil != value.Date && nil != other && nil != other.Date && nil == relativeDate && !other.Date.IsNotEmpty {
return true
}
}
if nil != value.Date {
if !value.Date.IsNotEmpty {