]> source.dussan.org Git - nextcloud-server.git/commit
Fix deleting properties of user settings when not given explicitly
authorDaniel Calviño Sánchez <danxuliu@gmail.com>
Sun, 31 Jan 2021 21:53:48 +0000 (22:53 +0100)
committerDaniel Calviño Sánchez <danxuliu@gmail.com>
Fri, 2 Jul 2021 12:27:23 +0000 (14:27 +0200)
commit44c870a4701be616047904718ffd788e3fbad5c3
tree50203312b7b1cc9b6165bad74d411d463ea4f847
parentae7eca8a36f930f2c332525e55344c6382aeb2fe
Fix deleting properties of user settings when not given explicitly

The controller can receive an optional subset of the properties of the
user settings; values not given are set to "null" by default. However,
those null values overwrote the previously existing values, so in
practice any value not given was deleted from the user settings. Now
only non null values overwrite the previous values.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
apps/settings/lib/Controller/UsersController.php
apps/settings/tests/Controller/UsersControllerTest.php