1
0
Fork 0

Fix matching

This commit is contained in:
Gregory Eremin 2015-01-23 12:56:07 +07:00
parent 9b92796375
commit 6bd7d2516c
1 changed files with 1 additions and 1 deletions

View File

@ -86,7 +86,7 @@ loop_over_fields:
}
)
if title != "" || len(attrs) == 0 || len(options) == 0 {
if title != "" || len(attrs) > 0 || len(options) > 0 {
// Substitute field name for title if none set
if kind != reflect.Struct {
cf.Value = val.Interface()