mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-17 23:20:13 +01:00
🎨 Improve database field default filling https://github.com/siyuan-note/siyuan/issues/11966 https://github.com/siyuan-note/siyuan/issues/15535
This commit is contained in:
parent
1136c1c493
commit
c9530ea1c2
1 changed files with 6 additions and 0 deletions
|
|
@ -352,6 +352,12 @@ func (value *Value) filter(other *Value, relativeDate, relativeDate2 *RelativeDa
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
case KeyTypeDate:
|
case KeyTypeDate:
|
||||||
|
if nil != value.Date && nil != other && nil != other.Date {
|
||||||
|
if !other.Date.IsNotEmpty {
|
||||||
|
return true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if nil != value.Date {
|
if nil != value.Date {
|
||||||
switch operator {
|
switch operator {
|
||||||
case FilterOperatorIsEmpty:
|
case FilterOperatorIsEmpty:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue