Skip to content

Commit a498ef6

Browse files
authored
Merge pull request ILIAS-eLearning#11248 from surlabs/ilias11_LTI_M46324
[FIX] LTI: Improve LTI consumer label in authentication mode filter
2 parents 34cab06 + 415eabd commit a498ef6

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)