From 272ff4ff6459a9e305cd52a37c9e46fc00c4b1c7 Mon Sep 17 00:00:00 2001 From: Nils Haagen Date: Wed, 13 Nov 2024 11:58:10 +0100 Subject: [PATCH] OrgU: 42682, orgu_ref must be of type int --- .../classes/PathStorage/class.ilOrgUnitPathStorage.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/ILIAS/OrgUnit/classes/PathStorage/class.ilOrgUnitPathStorage.php b/components/ILIAS/OrgUnit/classes/PathStorage/class.ilOrgUnitPathStorage.php index f13c015391a9..ae3ec893bcdf 100755 --- a/components/ILIAS/OrgUnit/classes/PathStorage/class.ilOrgUnitPathStorage.php +++ b/components/ILIAS/OrgUnit/classes/PathStorage/class.ilOrgUnitPathStorage.php @@ -131,9 +131,9 @@ public static function getTextRepresentationOfOrgUnits(bool $sort_by_title = tru return ilOrgUnitPathStorage::getArray('ref_id', 'path'); } - public static function writePathByRefId(string $ref_id): void + public static function writePathByRefId(int $ref_id): void { - $original_ref_id = (int) $ref_id; + $original_ref_id = $ref_id; $names = self::getAllOrguNames(); $root_ref_id = ilObjOrgUnit::getRootOrgRefId(); $tree = ilObjOrgUnitTree::_getInstance();