nextcloud/apps/settings/tests/Controller
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
..
AdminSettingsControllerTest.php Update license headers for Nextcloud 20 (again) 2020-09-07 14:37:44 +02:00
AppSettingsControllerTest.php Move away some ILoggers 2021-03-02 10:47:25 +01:00
AuthSettingsControllerTest.php Move away some ILoggers 2021-03-02 10:47:25 +01:00
CheckSetupControllerTest.php Move away some ILoggers 2021-03-02 10:47:25 +01:00
MailSettingsControllerTest.php Update the license headers for Nextcloud 20 2020-08-24 14:54:25 +02:00
TwoFactorSettingsControllerTest.php Format control structures, classes, methods and function 2020-04-10 14:19:56 +02:00
UsersControllerTest.php Respect additional user settings not covered by the controller 2021-04-23 11:44:41 +02:00