Skip to content

Commit c9530ea

Browse files
committed
🎨 Improve database field default filling #11966 #15535
1 parent 1136c1c commit c9530ea

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

kernel/av/filter.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -352,6 +352,12 @@ func (value *Value) filter(other *Value, relativeDate, relativeDate2 *RelativeDa
352352
}
353353
}
354354
case KeyTypeDate:
355+
if nil != value.Date && nil != other && nil != other.Date {
356+
if !other.Date.IsNotEmpty {
357+
return true
358+
}
359+
}
360+
355361
if nil != value.Date {
356362
switch operator {
357363
case FilterOperatorIsEmpty:

0 commit comments

Comments
 (0)