Skip to content

Commit

Permalink
More CalDAV empty-array time-range changes
Browse files Browse the repository at this point in the history
  • Loading branch information
phil-davis committed Jul 15, 2022
1 parent 450d1e9 commit dd19543
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions lib/CalDAV/Backend/AbstractBackend.php
Original file line number Diff line number Diff line change
Expand Up @@ -188,13 +188,13 @@ public function getCalendarObjectByUID($principalUri, $uid)
[
'name' => 'VEVENT',
'is-not-defined' => false,
'time-range' => null,
'time-range' => [],
'comp-filters' => [],
'prop-filters' => [
[
'name' => 'UID',
'is-not-defined' => false,
'time-range' => null,
'time-range' => [],
'text-match' => [
'value' => $uid,
'negate-condition' => false,
Expand Down
2 changes: 1 addition & 1 deletion lib/CalDAV/ICSExportPlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ protected function generateResponse($path, $start, $end, $expand, $componentType
],
'prop-filters' => [],
'is-not-defined' => false,
'time-range' => null,
'time-range' => [],
]);

// queryResult is just a list of base urls. We need to prefix the
Expand Down
2 changes: 1 addition & 1 deletion lib/CalDAV/Plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -681,7 +681,7 @@ protected function freeBusyQueryReport(Xml\Request\FreeBusyQueryReport $report)
],
'prop-filters' => [],
'is-not-defined' => false,
'time-range' => null,
'time-range' => [],
]);

$objects = array_map(function ($url) use ($calendar) {
Expand Down
2 changes: 1 addition & 1 deletion lib/CalDAV/Schedule/Plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -916,7 +916,7 @@ protected function getFreeBusyForEmail($email, \DateTimeInterface $start, \DateT
],
'prop-filters' => [],
'is-not-defined' => false,
'time-range' => null,
'time-range' => [],
]);

$calObjects = array_map(function ($url) use ($node) {
Expand Down
2 changes: 1 addition & 1 deletion lib/CalDAV/Xml/Filter/CompFilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public static function xmlDeserialize(Reader $reader)
'is-not-defined' => false,
'comp-filters' => [],
'prop-filters' => [],
'time-range' => false,
'time-range' => [],
];

$att = $reader->parseAttributes();
Expand Down
6 changes: 3 additions & 3 deletions tests/Sabre/CalDAV/Xml/Request/CalendarQueryReportTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public function testDeserialize()
'is-not-defined' => false,
'comp-filters' => [],
'prop-filters' => [],
'time-range' => false,
'time-range' => [],
];

$this->assertEquals(
Expand Down Expand Up @@ -130,7 +130,7 @@ public function testDeserializeComplex()
'is-not-defined' => true,
'comp-filters' => [],
'prop-filters' => [],
'time-range' => false,
'time-range' => [],
],
],
'prop-filters' => [
Expand Down Expand Up @@ -204,7 +204,7 @@ public function testDeserializeComplex()
],
],
'prop-filters' => [],
'time-range' => false,
'time-range' => [],
];

$this->assertEquals(
Expand Down

0 comments on commit dd19543

Please sign in to comment.