mirror of
https://github.com/rancher/norman.git
synced 2025-09-02 07:44:51 +00:00
Default empty strings
This commit is contained in:
@@ -88,7 +88,11 @@ func (b *Builder) copyInputs(schema *types.Schema, input map[string]interface{},
|
||||
}
|
||||
}
|
||||
}
|
||||
result[fieldName] = value
|
||||
|
||||
// Don't copy empty strings
|
||||
if !(value == "" && field.Type == "string") {
|
||||
result[fieldName] = value
|
||||
}
|
||||
|
||||
if op.IsList() && field.Type == "date" && value != "" {
|
||||
ts, err := convert.ToTimestamp(value)
|
||||
|
Reference in New Issue
Block a user