]> 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, 23 Apr 2021 14:53:57 +0000 (16:53 +0200)
commit77aba3df3c2693fc8c1f656096327fde365bd99f
tree71549fee8733ee970c38c268c1a83747277906e4
parent0ddd89273663ff2449793f6091d4d0dfbdf9a082
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