Bugfixes and freedback addressing 2
This commit is contained in:
@@ -45,6 +45,7 @@ func Select(value string, target *string, allowedValues []string, optional bool)
|
||||
func Date(value string, target *time.Time, optional bool) error {
|
||||
if value == "" {
|
||||
if optional {
|
||||
*target = time.Time{}
|
||||
return nil
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user