From 6a5ea186db7ea1e1b78d561083ba7051e5ee3eb0 Mon Sep 17 00:00:00 2001 From: JulianJanetschek <54806745+jkjanetschek@users.noreply.github.com> Date: Thu, 28 Sep 2023 13:44:19 +0200 Subject: [PATCH] Update SavePublishedSettingsListener.java fix: lookup eventTrackingService via ComponentManager --- .../ui/listener/author/SavePublishedSettingsListener.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/samigo/samigo-app/src/java/org/sakaiproject/tool/assessment/ui/listener/author/SavePublishedSettingsListener.java b/samigo/samigo-app/src/java/org/sakaiproject/tool/assessment/ui/listener/author/SavePublishedSettingsListener.java index cac0a43e36f2..aa3cb3ceb454 100644 --- a/samigo/samigo-app/src/java/org/sakaiproject/tool/assessment/ui/listener/author/SavePublishedSettingsListener.java +++ b/samigo/samigo-app/src/java/org/sakaiproject/tool/assessment/ui/listener/author/SavePublishedSettingsListener.java @@ -89,7 +89,7 @@ import java.util.ListIterator; import org.sakaiproject.tool.assessment.data.dao.assessment.ExtendedTime; import org.sakaiproject.component.cover.ComponentManager; -import org.sakaiproject.component.cover.ComponentManager; + /** *

Title: Samigo

2 *

Description: Sakai Assessment Manager

@@ -109,7 +109,9 @@ public class SavePublishedSettingsListener private final SamigoAvailableNotificationService samigoAvailableNotificationService = ComponentManager.get(SamigoAvailableNotificationService.class); private EventTrackingService eventTrackingService; - public SavePublishedSettingsListener() {} + public SavePublishedSettingsListener() { + eventTrackingService = ComponentManager.get(EventTrackingService.class); + } public void processAction(ActionEvent ae) throws AbortProcessingException {