Modification that uses patch (addAttributes method) such as habilitations and simpleAppManagedAttributes updates the user via sugoi api and the updated user is retrieved by sugoi-ui.
However the updated user is not used to update the user that will be posted to the api leading to losing the patch modification after a post modification.
Step to reproduce :
- add two habilitations on a user (because only one will trigger an api bug that will hide this bug)
- return to the Main tab
- click on "Enregistrer les modifications"
- the added habilitations have been erased
Modification that uses patch (addAttributes method) such as habilitations and simpleAppManagedAttributes updates the user via sugoi api and the updated user is retrieved by sugoi-ui.
However the updated user is not used to update the user that will be posted to the api leading to losing the patch modification after a post modification.
Step to reproduce :