From fb98e3e65b389a9eb6d3a34e24e8ec8f462b5e5f Mon Sep 17 00:00:00 2001 From: Jan-Hendrik Willms <tleilax+studip@gmail.com> Date: Wed, 9 Nov 2022 14:12:31 +0000 Subject: [PATCH] fix typo, fixes #1767 Closes #1767 Merge request studip/studip!1143 --- app/views/course/room_requests/request_select_room.php | 2 +- lib/models/resources/Resource.class.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/course/room_requests/request_select_room.php b/app/views/course/room_requests/request_select_room.php index 46df75c3c8f..752ad9898d9 100644 --- a/app/views/course/room_requests/request_select_room.php +++ b/app/views/course/room_requests/request_select_room.php @@ -38,7 +38,7 @@ value="<?= htmlReady($room->id) ?>"> <?= htmlReady(mb_substr($room->name, 0, 50)); ?> <? if ($room->properties): ?> - <? $property_names = $room->getInfolabelPrperties() + <? $property_names = $room->getInfolabelProperties() ->pluck('fullname') ?> <?= tooltipIcon(implode("\n", $property_names)) ?> <? endif ?> diff --git a/lib/models/resources/Resource.class.php b/lib/models/resources/Resource.class.php index 999b34a9979..99d335f3357 100644 --- a/lib/models/resources/Resource.class.php +++ b/lib/models/resources/Resource.class.php @@ -1468,7 +1468,7 @@ class Resource extends SimpleORMap implements StudipItem * * @return SimpleCollection */ - public function getInfolabelPrperties() + public function getInfolabelProperties() { return SimpleCollection::createFromArray( ResourceProperty::findBySQL('INNER JOIN `resource_property_definitions` USING (`property_id`) -- GitLab