mirror of
https://github.com/nextcloud/server.git
synced 2026-03-23 19:03:20 -04:00
Merge pull request #7152 from nextcloud/bugfix/noid/adjust_calendarobject_size_after_applying_class
remove cached size from shared calendar objects
This commit is contained in:
commit
eeb0cfdaf5
1 changed files with 16 additions and 0 deletions
|
|
@ -32,6 +32,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
|
||||
*/
|
||||
|
|
|
|||
Loading…
Reference in a new issue