mirror of
https://github.com/kataras/iris.git
synced 2025-01-23 18:51:03 +01:00
Merge pull request #1474 from rocinantex/master
fix bug: deep dependency injection Former-commit-id: 61f4c7f72555957bee25d3f4cf4be1f07f84744c
This commit is contained in:
commit
5d5df1aa13
|
@ -142,7 +142,9 @@ func lookupFields(elem reflect.Value, skipUnexported bool, onlyZeros bool, paren
|
||||||
index = append(parentIndex, i)
|
index = append(parentIndex, i)
|
||||||
}
|
}
|
||||||
|
|
||||||
field.Index = index
|
tmp := make([]int, len(index))
|
||||||
|
copy(tmp, index)
|
||||||
|
field.Index = tmp
|
||||||
|
|
||||||
fields = append(fields, field)
|
fields = append(fields, field)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user