fix(activity): Fix activity parameter types

Signed-off-by: Joas Schilling <coding@schilljs.com>
pull/50860/head
Joas Schilling 8 months ago
parent 509a53c36c
commit acac415121
No known key found for this signature in database
GPG Key ID: F72FA5B49FFA96B0
  1. 4
      apps/dav/lib/CardDAV/Activity/Provider/Base.php
  2. 6
      apps/systemtags/lib/Activity/Provider.php

@ -45,14 +45,14 @@ abstract class Base implements IProvider {
$data['name'] === CardDavBackend::PERSONAL_ADDRESSBOOK_NAME) {
return [
'type' => 'addressbook',
'id' => $data['id'],
'id' => (string)$data['id'],
'name' => $l->t('Personal'),
];
}
return [
'type' => 'addressbook',
'id' => $data['id'],
'id' => (string)$data['id'],
'name' => $data['name'],
];
}

@ -275,7 +275,7 @@ class Provider implements IProvider {
protected function getFileParameter($id, $path) {
return [
'type' => 'file',
'id' => $id,
'id' => (string)$id,
'name' => basename($path),
'path' => trim($path, '/'),
];
@ -286,7 +286,7 @@ class Provider implements IProvider {
if ($tagData === null) {
[$name, $status] = explode('|||', substr($parameter, 3, -3));
$tagData = [
'id' => 0,// No way to recover the ID
'id' => '0',// No way to recover the ID
'name' => $name,
'assignable' => $status === 'assignable',
'visible' => $status !== 'invisible',
@ -295,7 +295,7 @@ class Provider implements IProvider {
return [
'type' => 'systemtag',
'id' => (int)$tagData['id'],
'id' => (string)$tagData['id'],
'name' => $tagData['name'],
'assignable' => $tagData['assignable'] ? '1' : '0',
'visibility' => $tagData['visible'] ? '1' : '0',

Loading…
Cancel
Save