forked from vikunja/vikunja
feat: added support for checking any value against "null" in filter string to see if it was set
This commit is contained in:
parent
95a9c06921
commit
ce83dd7649
|
@ -244,6 +244,11 @@ func getValueForField(field reflect.StructField, rawValue string, loc *time.Loca
|
|||
loc = config.GetTimeZone()
|
||||
}
|
||||
|
||||
if rawValue == "null" {
|
||||
value = nil
|
||||
return
|
||||
}
|
||||
|
||||
switch field.Type.Kind() {
|
||||
case reflect.Int64:
|
||||
value, err = strconv.ParseInt(rawValue, 10, 64)
|
||||
|
|
Loading…
Reference in New Issue
Block a user