1
0
mirror of https://github.com/rancher/norman.git synced 2025-08-17 14:56:42 +00:00

Ignore for nullable enums

This commit is contained in:
Darren Shepherd 2018-03-26 19:04:51 -07:00
parent 41c044bb25
commit cff992b3b4

View File

@ -162,7 +162,7 @@ func checkFieldCriteria(fieldName string, field types.Field, value interface{})
value = field.Default value = field.Default
} }
if value != nil { if value != nil && value != "" {
hasStrVal = true hasStrVal = true
strVal = fmt.Sprint(value) strVal = fmt.Sprint(value)
} }