Problem/Motivation
We receive from the CAS server attributes in array. So some of these array can have multiple values in it like this :
DIV [cas:attribute:div] array ( 0 => '3A##3A', 1 => '4B##4B', 2 => '5C##5C', 3 => '6A##6A', 4 => '6D##6d', )
The attributes are mapped with user fields (in the above example it's mapped with the gar_div field) and the attribute value is saved on the user at each login.
The issue is, when we receive an array with multiple values, all of the array is saved as one value in the user field :
Proposed resolution
Make that the multiple value attribute let charge on field with multiple value.
Comments
Comment #3
sorlov commentedYour code is trying to reach div key from $casAttributes array, while proper key should be DIV in your example
Comment #4
sorlov commentedAdded commit to fix this issue