mirror of
https://github.com/nextcloud/server.git
synced 2024-09-01 05:57:11 +02:00
Merge pull request #4166 from nextcloud/issue-4165-invalid-int-for-transparency-on-calendars
Make sure transparency is an integer when saving a calendar
This commit is contained in:
commit
455542d306
@ -621,7 +621,7 @@ class CalDavBackend extends AbstractBackend implements SyncSupport, Subscription
|
||||
}
|
||||
$transp = '{' . Plugin::NS_CALDAV . '}schedule-calendar-transp';
|
||||
if (isset($properties[$transp])) {
|
||||
$values['transparent'] = $properties[$transp]->getValue()==='transparent';
|
||||
$values['transparent'] = (int) ($properties[$transp]->getValue() === 'transparent');
|
||||
}
|
||||
|
||||
foreach($this->propertyMap as $xmlName=>$dbName) {
|
||||
@ -674,7 +674,7 @@ class CalDavBackend extends AbstractBackend implements SyncSupport, Subscription
|
||||
switch ($propertyName) {
|
||||
case '{' . Plugin::NS_CALDAV . '}schedule-calendar-transp' :
|
||||
$fieldName = 'transparent';
|
||||
$newValues[$fieldName] = $propertyValue->getValue() === 'transparent';
|
||||
$newValues[$fieldName] = (int) ($propertyValue->getValue() === 'transparent');
|
||||
break;
|
||||
default :
|
||||
$fieldName = $this->propertyMap[$propertyName];
|
||||
|
Loading…
Reference in New Issue
Block a user