Skip to content
Snippets Groups Projects
Unverified Commit 10fae399 authored by Vincent Petry's avatar Vincent Petry
Browse files

Fix system tag update code

parent d7727cdc
No related branches found
No related tags found
No related merge requests found
...@@ -187,6 +187,9 @@ class SystemTagPlugin extends \Sabre\DAV\ServerPlugin { ...@@ -187,6 +187,9 @@ class SystemTagPlugin extends \Sabre\DAV\ServerPlugin {
$groups = []; $groups = [];
if (isset($data['groups'])) { if (isset($data['groups'])) {
$groups = $data['groups']; $groups = $data['groups'];
if (is_string($groups)) {
$groups = explode('|', $groups);
}
} }
if($userVisible === false || $userAssignable === false || !empty($groups)) { if($userVisible === false || $userAssignable === false || !empty($groups)) {
...@@ -308,6 +311,7 @@ class SystemTagPlugin extends \Sabre\DAV\ServerPlugin { ...@@ -308,6 +311,7 @@ class SystemTagPlugin extends \Sabre\DAV\ServerPlugin {
$groupIds = explode('|', $propValue); $groupIds = explode('|', $propValue);
$this->tagManager->setTagGroups($tag, $groupIds); $this->tagManager->setTagGroups($tag, $groupIds);
} }
return true;
}); });
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment