Fix system tag update code

This commit is contained in:
Vincent Petry 2016-05-12 12:07:58 +02:00
parent d7727cdc74
commit 10fae3994a
No known key found for this signature in database
GPG Key ID: AF8F9EFC56562186
1 changed files with 4 additions and 0 deletions

View File

@ -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;
});
}