[Pkg-owncloud-commits] [php-sabredav] 127/275: This should be an instance of Sabre\CalDAV\Property\ScheduleCalendarTransp
David Prévot
taffit at moszumanska.debian.org
Thu Sep 25 14:55:59 UTC 2014
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository php-sabredav.
commit c6865c46ad396fac57be148c0b47ddbbb9703ec7
Author: Dominik Tobschall <dominik at fruux.com>
Date: Fri Aug 1 02:06:04 2014 +0200
This should be an instance of Sabre\CalDAV\Property\ScheduleCalendarTransp
---
lib/CalDAV/Schedule/Plugin.php | 2 +-
tests/Sabre/CalDAV/Schedule/FreeBusyRequestTest.php | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/lib/CalDAV/Schedule/Plugin.php b/lib/CalDAV/Schedule/Plugin.php
index 8163f37..7549c54 100644
--- a/lib/CalDAV/Schedule/Plugin.php
+++ b/lib/CalDAV/Schedule/Plugin.php
@@ -822,7 +822,7 @@ class Plugin extends ServerPlugin {
$sct = $caldavNS . 'schedule-calendar-transp';
$props = $node->getProperties([$sct]);
- if (isset($props[$sct]) && $props[$sct] == ScheduleCalendarTransp::TRANSPARENT) {
+ if (isset($props[$sct]) && $props[$sct]->getValue() == ScheduleCalendarTransp::TRANSPARENT) {
continue;
}
diff --git a/tests/Sabre/CalDAV/Schedule/FreeBusyRequestTest.php b/tests/Sabre/CalDAV/Schedule/FreeBusyRequestTest.php
index 27ad783..7c214fb 100644
--- a/tests/Sabre/CalDAV/Schedule/FreeBusyRequestTest.php
+++ b/tests/Sabre/CalDAV/Schedule/FreeBusyRequestTest.php
@@ -29,7 +29,7 @@ class FreeBusyRequestTest extends \PHPUnit_Framework_TestCase {
'principaluri' => 'principals/user2',
'id' => 2,
'uri' => 'calendar2',
- '{' . CalDAV\Plugin::NS_CALDAV . '}schedule-calendar-transp' => ScheduleCalendarTransp::TRANSPARENT,
+ '{' . CalDAV\Plugin::NS_CALDAV . '}schedule-calendar-transp' => new ScheduleCalendarTransp(ScheduleCalendarTransp::TRANSPARENT),
),
);
$calendarobjects = array(
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/php-sabredav.git
More information about the Pkg-owncloud-commits
mailing list