Skip to content

Commit

Permalink
Test fix for proppatch
Browse files Browse the repository at this point in the history
  • Loading branch information
VicDeo committed Apr 23, 2020
1 parent 8bde5b2 commit e2d65e6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions apps/dav/lib/DAV/FileCustomPropertiesBackend.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
use OCA\DAV\Connector\Sabre\Node;
use OC\Cache\CappedMemoryCache;
use Sabre\DAV\INode;
use Sabre\DAV\Xml\Property\Complex;

/**
* Class FileCustomPropertiesBackend
Expand Down Expand Up @@ -186,6 +187,9 @@ protected function updateProperties($path, INode $node, $changedProperties) {
);
}
} else {
if ($propertyValue instanceof Complex) {
$propertyValue = $propertyValue->getXml();
}
if (!$propertyExists) {
$this->connection->executeUpdate($insertStatement,
[
Expand Down

0 comments on commit e2d65e6

Please sign in to comment.