mirror of
https://github.com/nextcloud/server.git
synced 2026-04-15 22:11:17 -04:00
Merge pull request #30771 from nextcloud/fix/proppatch-convert-complex-properties
Convert properties value to string before passing them to database
This commit is contained in:
commit
9b5245facf
1 changed files with 5 additions and 0 deletions
|
|
@ -303,6 +303,11 @@ class CustomPropertiesBackend implements BackendInterface {
|
|||
);
|
||||
}
|
||||
} else {
|
||||
if ($propertyValue instanceOf \Sabre\DAV\Xml\Property\Complex) {
|
||||
$propertyValue = $propertyValue->getXml();
|
||||
} elseif (!is_string($propertyValue)) {
|
||||
$propertyValue = (string)$propertyValue;
|
||||
}
|
||||
if (!array_key_exists($propertyName, $existing)) {
|
||||
$this->connection->executeUpdate($insertStatement,
|
||||
[
|
||||
|
|
|
|||
Loading…
Reference in a new issue