diff options
author | Vincent Petry <pvince81@owncloud.com> | 2016-05-12 12:07:58 +0200 |
---|---|---|
committer | Vincent Petry <pvince81@owncloud.com> | 2016-05-20 17:56:02 +0200 |
commit | 10fae3994a9cb7b990f72bc9ff34d631428dc35c (patch) | |
tree | bbf7178c092c141bddf4c708ab7e4ff9c54fd4e1 /apps/dav/lib | |
parent | d7727cdc74426a8d97cfc069d84c67347dbcd33b (diff) | |
download | nextcloud-server-10fae3994a9cb7b990f72bc9ff34d631428dc35c.tar.gz nextcloud-server-10fae3994a9cb7b990f72bc9ff34d631428dc35c.zip |
Fix system tag update code
Diffstat (limited to 'apps/dav/lib')
-rw-r--r-- | apps/dav/lib/SystemTag/SystemTagPlugin.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/dav/lib/SystemTag/SystemTagPlugin.php b/apps/dav/lib/SystemTag/SystemTagPlugin.php index 2b39b5c0261..fa6010a5bf5 100644 --- a/apps/dav/lib/SystemTag/SystemTagPlugin.php +++ b/apps/dav/lib/SystemTag/SystemTagPlugin.php @@ -187,6 +187,9 @@ class SystemTagPlugin extends \Sabre\DAV\ServerPlugin { $groups = []; if (isset($data['groups'])) { $groups = $data['groups']; + if (is_string($groups)) { + $groups = explode('|', $groups); + } } if($userVisible === false || $userAssignable === false || !empty($groups)) { @@ -308,6 +311,7 @@ class SystemTagPlugin extends \Sabre\DAV\ServerPlugin { $groupIds = explode('|', $propValue); $this->tagManager->setTagGroups($tag, $groupIds); } + return true; }); } |