From 00630e481426784f52f3e16eaf13d57d64e644f7 Mon Sep 17 00:00:00 2001
From: srosse <none@none>
Date: Wed, 7 Oct 2015 12:24:44 +0200
Subject: [PATCH] OO-1716: send the event to the general course listener and
 not a specific course listener

---
 src/main/java/org/olat/course/CourseModule.java                | 2 +-
 .../assessment/EfficiencyStatementAssessmentController.java    | 3 ++-
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/main/java/org/olat/course/CourseModule.java b/src/main/java/org/olat/course/CourseModule.java
index 4b6b4d3eb35..49bef1a8721 100644
--- a/src/main/java/org/olat/course/CourseModule.java
+++ b/src/main/java/org/olat/course/CourseModule.java
@@ -67,7 +67,7 @@ public class CourseModule extends AbstractOLATModule {
 	private static boolean displayParticipantsCount;
 	// Repository types
 	public static String ORES_TYPE_COURSE = OresHelper.calculateTypeName(CourseModule.class);
-	private static OLATResourceable ORESOURCEABLE_TYPE_COURSE = OresHelper.lookupType(CourseModule.class);
+	public static OLATResourceable ORESOURCEABLE_TYPE_COURSE = OresHelper.lookupType(CourseModule.class);
 	public static final String ORES_COURSE_ASSESSMENT = OresHelper.calculateTypeName(AssessmentManager.class);
 	private static String helpCourseSoftkey;
 	private static CoordinatorManager coordinatorManager;
diff --git a/src/main/java/org/olat/course/assessment/EfficiencyStatementAssessmentController.java b/src/main/java/org/olat/course/assessment/EfficiencyStatementAssessmentController.java
index 8b8941419d1..76c597e2082 100644
--- a/src/main/java/org/olat/course/assessment/EfficiencyStatementAssessmentController.java
+++ b/src/main/java/org/olat/course/assessment/EfficiencyStatementAssessmentController.java
@@ -40,6 +40,7 @@ import org.olat.core.id.context.BusinessControlFactory;
 import org.olat.core.util.coordinate.CoordinatorManager;
 import org.olat.core.util.event.GenericEventListener;
 import org.olat.course.CourseFactory;
+import org.olat.course.CourseModule;
 import org.olat.course.ICourse;
 import org.olat.repository.RepositoryEntry;
 import org.olat.repository.RepositoryManager;
@@ -138,6 +139,6 @@ public class EfficiencyStatementAssessmentController extends FormBasicController
 	private void recalculate() {
 		flc.contextPut("recalculating", Boolean.TRUE);
 		EfficiencyStatementEvent recalculateEvent = new EfficiencyStatementEvent(EfficiencyStatementEvent.CMD_RECALCULATE, ores.getResourceableId());
-		CoordinatorManager.getInstance().getCoordinator().getEventBus().fireEventToListenersOf(recalculateEvent, ores);
+		CoordinatorManager.getInstance().getCoordinator().getEventBus().fireEventToListenersOf(recalculateEvent, CourseModule.ORESOURCEABLE_TYPE_COURSE);
 	}
 }
-- 
GitLab