Skip to content

Commit 415eabd

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 34cab06 commit 415eabd

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
@@ -122,7 +122,10 @@ public static function lookupConsumer(int $a_sid): string
122122
{
123123
$connector = new ilLTIDataConnector();
124124
$consumer = ilLTIPlatform::fromRecordId($a_sid, $connector);
125-
return $consumer->getTitle();
125+
126+
$object_ref = $consumer->getRefId();
127+
$object_title = ilObject2::_lookupTitle(ilObject2::_lookupObjectId($object_ref));
128+
return $consumer->getTitle() . " / " . $object_title;
126129
}
127130

128131
/**

0 commit comments

Comments
 (0)