Fix matching
This commit is contained in:
parent
9b92796375
commit
6bd7d2516c
|
@ -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
|
// Substitute field name for title if none set
|
||||||
if kind != reflect.Struct {
|
if kind != reflect.Struct {
|
||||||
cf.Value = val.Interface()
|
cf.Value = val.Interface()
|
||||||
|
|
Loading…
Reference in New Issue