summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2017-11-17 08:28:34 +0100
committerGitHub <noreply@github.com>2017-11-17 08:28:34 +0100
commiteeb0cfdaf52bc9929bb27040f74a66bfc18ca67c (patch)
treee8df90e24d6143dca356e999f4c75fde1694c1f8 /apps
parent6c2c129fce644241ad84a2659e01826bd00388cf (diff)
parent19b77039d73ebc4dfa09261f164eed0ea7c1950e (diff)
downloadnextcloud-server-eeb0cfdaf52bc9929bb27040f74a66bfc18ca67c.tar.gz
nextcloud-server-eeb0cfdaf52bc9929bb27040f74a66bfc18ca67c.zip
Merge pull request #7152 from nextcloud/bugfix/noid/adjust_calendarobject_size_after_applying_class
remove cached size from shared calendar objects
Diffstat (limited to 'apps')
-rw-r--r--apps/dav/lib/CalDAV/CalendarObject.php16
1 files changed, 16 insertions, 0 deletions
diff --git a/apps/dav/lib/CalDAV/CalendarObject.php b/apps/dav/lib/CalDAV/CalendarObject.php
index 949886bf32a..0db592898af 100644
--- a/apps/dav/lib/CalDAV/CalendarObject.php
+++ b/apps/dav/lib/CalDAV/CalendarObject.php
@@ -33,6 +33,22 @@ use Sabre\VObject\Reader;
class CalendarObject extends \Sabre\CalDAV\CalendarObject {
/**
+ * CalendarObject constructor.
+ *
+ * @param CalDavBackend $caldavBackend
+ * @param array $calendarInfo
+ * @param array $objectData
+ */
+ public function __construct(CalDavBackend $caldavBackend, array $calendarInfo,
+ array $objectData) {
+ parent::__construct($caldavBackend, $calendarInfo, $objectData);
+
+ if ($this->isShared()) {
+ unset($this->objectData['size']);
+ }
+ }
+
+ /**
* @inheritdoc
*/
function get() {