User.merge puts array attribute in array
dmironowicz opened this issue · 0 comments
dmironowicz commented
Version
4.2.6
Context
Merging two User
objects, such that only one of them has an array attribute with a given name, results in the merged user having this attribute as array of arrays.
Steps to reproduce
- Create 1st User without any attributes
- Create 2nd User with a single
JsonArray
attribute, e.g.roles = ["write"]
- Call
merge
on the 1st user passing 2nd as parameter - Merged user has
roles = [ ["write"] ]