1
0
mirror of https://github.com/rancher/norman.git synced 2025-08-02 07:59:20 +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
}
if value != nil {
if value != nil && value != "" {
hasStrVal = true
strVal = fmt.Sprint(value)
}