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.

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

vacho created an issue. See original summary.

sorlov’s picture

Status: Active » Needs work

Your code is trying to reach div key from $casAttributes array, while proper key should be DIV in your example

sorlov’s picture

Status: Needs work » Needs review

Added commit to fix this issue