Merge 56356759aa269e960f908e4659ad816e855f586e into aa45da15421ddb1549a7060e5c189f8350a29166
This commit is contained in:
commit
ab917db1bf
2
field.go
2
field.go
@ -64,7 +64,7 @@ func (scope *Scope) Fields() map[string]*Field {
|
||||
indirectValue := scope.IndirectValue()
|
||||
isStruct := indirectValue.Kind() == reflect.Struct
|
||||
for _, structField := range modelStruct.StructFields {
|
||||
if field, ok := fields[structField.DBName]; !ok || field.IsIgnored {
|
||||
if field, ok := fields[structField.DBName]; !ok || !field.IsIgnored {
|
||||
if isStruct {
|
||||
fields[structField.DBName] = getField(indirectValue, structField)
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user