🐛 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,10 +285,8 @@ func (value *Value) filter(other *Value, relativeDate, relativeDate2 *RelativeDa
} }
} }
case KeyTypeDate: case KeyTypeDate:
if nil != value.Date && nil != other && nil != other.Date { if nil != value.Date && nil != other && nil != other.Date && nil == relativeDate && !other.Date.IsNotEmpty {
if !other.Date.IsNotEmpty { return true
return true
}
} }
if nil != value.Date { if nil != value.Date {