diff options
author | Morris Jobke <hey@morrisjobke.de> | 2017-11-17 08:28:34 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-11-17 08:28:34 +0100 |
commit | eeb0cfdaf52bc9929bb27040f74a66bfc18ca67c (patch) | |
tree | e8df90e24d6143dca356e999f4c75fde1694c1f8 /apps | |
parent | 6c2c129fce644241ad84a2659e01826bd00388cf (diff) | |
parent | 19b77039d73ebc4dfa09261f164eed0ea7c1950e (diff) | |
download | nextcloud-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.php | 16 |
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() { |