Skip to content

Commit b0ca129

Browse files
committed
[FIX] LTI: Improve LTI consumer label in authentication mode filter
Display the associated object title together with the consumer title to avoid multiple indistinguishable entries in the filter dropdown.
1 parent 1441072 commit b0ca129

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

components/ILIAS/LTIProvider/classes/InternalProvider/class.ilAuthProviderLTI.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,10 @@ public static function lookupConsumer(int $a_sid): string
120120
{
121121
$connector = new ilLTIDataConnector();
122122
$consumer = ilLTIPlatform::fromRecordId($a_sid, $connector);
123-
return $consumer->getTitle();
123+
124+
$object_ref = $consumer->getRefId();
125+
$object_title = ilObject2::_lookupTitle(ilObject2::_lookupObjectId($object_ref));
126+
return $consumer->getTitle() . " / " . $object_title;
124127
}
125128

126129
/**

0 commit comments

Comments
 (0)