nextcloud/apps/settings/tests
Daniel Calviño Sánchez a7431817b9 Respect additional user settings not covered by the controller
"AccountManager::updateUser()" wipes previous user data with whichever
user data is given (except for some adjustments, like resetting the
verified status when needed). As the controller overrode the properties
those properties would lose some of their attributes even if they are
not affected by the changes made by the controller. Now the controller
only modifies the attributes set ("value" and "scope") to prevent that.

Note that with this change the controller no longer removes the
"verified" status, but this is not a problem because, as mentioned,
"AccountManager::updateUser()" resets them when needed (for example,
when the value of the website property changes).

This change is a previous step to fix overwritting properties with null
values, and it will prevent the controller from making unexpected
changes if more attributes are added in the future.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2021-04-23 11:44:41 +02:00
..
Activity Format control structures, classes, methods and function 2020-04-10 14:19:56 +02:00
AppInfo Remove old unit tests as well 2020-06-06 11:11:11 +02:00
Controller Respect additional user settings not covered by the controller 2021-04-23 11:44:41 +02:00
Mailer Set the user language when adding the footer 2021-01-07 15:31:55 +01:00
Middleware Unify settings middleware with others 2020-06-23 20:18:38 +02:00
Settings Separate settings for remote share expiration 2021-04-15 10:06:09 +02:00
SetupChecks Add setup check to verify that the used DB version is still supported in the next major release 2021-01-08 13:38:32 +01:00