In the create person form I added a multiple selection field that gets the information from the "Areas de trabajo" data list.
In order to do this, I added a column to the bx_persons_data table, I created the field "Areas_de_trabajo" type bigint (20). I honestly don't know why I created the field with that type.
The issue is, the selection that a person makes is saved iin DB as a number, for example 33554432 or 195, etc. My question is how does the software (UNA) to translate that number to one or more specific workspaces from the list of "Areas de trabajo" created ?
The values are stored in the database field as a binary number. In inc/classes/BxDolForm.php, you will find the passSet function that takes the array of values and creates the number that is stored. There is also the displaySet function that takes the stored database value and translates it into the original array of values.