From de0bc2a15b771c20f01ff2ebb9d7c63006894090 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rub=C3=A9n=20D?= Date: Tue, 24 May 2022 08:05:41 +0200 Subject: [PATCH] fix: wrong property declaration. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Rubén D --- .../themes/material-blue/views/account/search-rows.inc | 2 +- lib/SP/DataModel/UserGroupData.php | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/app/modules/web/themes/material-blue/views/account/search-rows.inc b/app/modules/web/themes/material-blue/views/account/search-rows.inc index d6b4b492..f6804778 100644 --- a/app/modules/web/themes/material-blue/views/account/search-rows.inc +++ b/app/modules/web/themes/material-blue/views/account/search-rows.inc @@ -75,7 +75,7 @@ $favoriteRouteOff = $_getvar('favoriteRouteOff'); class="btn-action" data-action-route="" data-item-id="getId(); ?>" - data-onclick="account/view">getName(), ENT_QUOTES); ?> + data-onclick="account/view">getName(), ENT_QUOTES); ?>
getName(), ENT_QUOTES); ?> diff --git a/lib/SP/DataModel/UserGroupData.php b/lib/SP/DataModel/UserGroupData.php index 1c5d5df2..f14e8525 100644 --- a/lib/SP/DataModel/UserGroupData.php +++ b/lib/SP/DataModel/UserGroupData.php @@ -33,10 +33,10 @@ defined('APP_ROOT') || die(); */ class UserGroupData extends DataModelBase implements DataModelInterface { - public int $id = 0; - public string $name; + public int $id = 0; + public ?string $name = null; public ?string $description = null; - public ?array $users = null; + public ?array $users = null; public function getId(): int { @@ -48,7 +48,7 @@ class UserGroupData extends DataModelBase implements DataModelInterface $this->id = $id; } - public function getName(): string + public function getName(): ?string { return $this->name; }