🎨 Improve database auto-fill value when enabling filter https://github.com/siyuan-note/siyuan/issues/11297
This commit is contained in:
parent
bea1787dff
commit
1f028919df
1 changed files with 7 additions and 0 deletions
|
@ -689,6 +689,13 @@ func (filter *ViewFilter) GetAffectValue(key *Key, defaultVal *Value) (ret *Valu
|
|||
return nil
|
||||
}
|
||||
|
||||
if FilterOperatorIsEmpty != filter.Operator && FilterOperatorIsNotEmpty != filter.Operator {
|
||||
if filter.Value.IsEmpty() {
|
||||
// 在不是过滤空值和非空值的情况下,空值不设置默认值 https://github.com/siyuan-note/siyuan/issues/11297
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
ret = filter.Value.Clone()
|
||||
ret.CreatedAt = util.CurrentTimeMillis()
|
||||
ret.UpdatedAt = ret.CreatedAt + 1000
|
||||
|
|
Loading…
Add table
Reference in a new issue