From eb720bd0d2ac5d750ee31d40edc0e35b8071012d Mon Sep 17 00:00:00 2001 From: Moritz Strohm Date: Thu, 26 Feb 2026 20:37:51 +0100 Subject: Revert "replaced calls to Institute::getFullName with the getter for the "name" attribute" This reverts commit 6cc3810c7014eab46a871b26433a26d4a1fbf182. --- app/controllers/lvgruppen/lvgruppen.php | 2 +- app/controllers/massmail/permissions.php | 2 +- app/controllers/search/globalsearch.php | 2 +- app/views/admin/user/index.php | 2 +- app/views/settings/studies/institute.php | 4 ++-- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/app/controllers/lvgruppen/lvgruppen.php b/app/controllers/lvgruppen/lvgruppen.php index 189efad..9b1e951 100644 --- a/app/controllers/lvgruppen/lvgruppen.php +++ b/app/controllers/lvgruppen/lvgruppen.php @@ -411,7 +411,7 @@ class Lvgruppen_LvgruppenController extends MVVController $widget->addElement( new SelectElement( $institute->id, - ($institute->isFaculty() ? '' : ' ') . $institute->name, + ($institute->isFaculty() ? '' : ' ') . $institute->getFullName(), $institute->id === $selected_fachbereich ), 'select-' . $institute->name diff --git a/app/controllers/massmail/permissions.php b/app/controllers/massmail/permissions.php index 8bfdb19..ab8d075 100644 --- a/app/controllers/massmail/permissions.php +++ b/app/controllers/massmail/permissions.php @@ -61,7 +61,7 @@ class Massmail_PermissionsController extends \AuthenticatedController $institutes = []; foreach (Institute::findAll() as $one) { - $institutes[$one->id] = $one->name; + $institutes[$one->id] = $one->getFullName(); } $degrees = []; diff --git a/app/controllers/search/globalsearch.php b/app/controllers/search/globalsearch.php index 6a048ba..055725c 100644 --- a/app/controllers/search/globalsearch.php +++ b/app/controllers/search/globalsearch.php @@ -153,7 +153,7 @@ class Search_GlobalsearchController extends AuthenticatedController $insts = Institute::findAll(); foreach ($insts as $institute) { - $institutes[$institute->id] = ($institute->isFaculty() ? '' : ' ') . $institute->name; + $institutes[$institute->id] = ($institute->isFaculty() ? '' : ' ') . $institute->getFullName(); } return $institutes; } diff --git a/app/views/admin/user/index.php b/app/views/admin/user/index.php index da739f4..e4631ac 100644 --- a/app/views/admin/user/index.php +++ b/app/views/admin/user/index.php @@ -92,7 +92,7 @@ use Studip\Button; diff --git a/app/views/settings/studies/institute.php b/app/views/settings/studies/institute.php index b8b4fad..792e864 100644 --- a/app/views/settings/studies/institute.php +++ b/app/views/settings/studies/institute.php @@ -81,11 +81,11 @@ ): ?> -- cgit v1.0