Commit 0bde9cbd authored by dennismao's avatar dennismao

fix the issue #2995

parent f1668881
...@@ -75,7 +75,8 @@ func addModelFields(mi *modelInfo, ind reflect.Value, mName string, index []int) ...@@ -75,7 +75,8 @@ func addModelFields(mi *modelInfo, ind reflect.Value, mName string, index []int)
break break
} }
//record current field index //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.mi = mi
fi.inModel = true fi.inModel = true
if !mi.fields.Add(fi) { if !mi.fields.Add(fi) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment