From 310fa96e450e271e8f847bb102e51eb5fc67890b Mon Sep 17 00:00:00 2001 From: Luka Stocker Date: Mon, 25 Sep 2023 14:35:54 +0200 Subject: [PATCH] PRG: listen to LP events of CRSR only. (#37921) --- Modules/StudyProgramme/classes/class.ilObjStudyProgramme.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Modules/StudyProgramme/classes/class.ilObjStudyProgramme.php b/Modules/StudyProgramme/classes/class.ilObjStudyProgramme.php index 697f090d592a..42d4f0b376c1 100644 --- a/Modules/StudyProgramme/classes/class.ilObjStudyProgramme.php +++ b/Modules/StudyProgramme/classes/class.ilObjStudyProgramme.php @@ -1742,7 +1742,7 @@ public static function setProgressesCompletedFor(int $a_obj_id, int $a_user_id) { // We only use courses via crs_refs $type = ilObject::_lookupType($a_obj_id); - if ($type == "crs") { + if ($type == "crsr") { require_once("Services/ContainerReference/classes/class.ilContainerReference.php"); $crs_reference_obj_ids = ilContainerReference::_lookupSourceIds($a_obj_id); foreach ($crs_reference_obj_ids as $obj_id) {