fix the issue #2995

This commit is contained in:
dennismao 2017-12-22 16:21:23 +08:00
parent f16688817a
commit 0bde9cbd91
1 changed files with 2 additions and 1 deletions

View File

@ -75,7 +75,8 @@ func addModelFields(mi *modelInfo, ind reflect.Value, mName string, index []int)
break
}
//record current field index
fi.fieldIndex = append(index, i)
fi.fieldIndex = append(fi.fieldIndex, index...)
fi.fieldIndex = append(fi.fieldIndex, i)
fi.mi = mi
fi.inModel = true
if !mi.fields.Add(fi) {