Skip to content

Commit

Permalink
Fixed: Restore service sendNotification
Browse files Browse the repository at this point in the history
The service function had been moved to private, that break the service engine invocation. Restore it to public and synchronise the freemarker template creation with adding delegator and dispatcher to fix the url rendering system that need delegator
  • Loading branch information
nmalin committed Oct 15, 2024
1 parent f8ad232 commit c5bd1bc
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ public class NotificationServices {
* the sevice
* @return A Map with the service response messages in it
*/
private static Map<String, Object> sendNotification(DispatchContext ctx, Map<String, ? extends Object> context) {
public static Map<String, Object> sendNotification(DispatchContext ctx, Map<String, ? extends Object> context) {
LocalDispatcher dispatcher = ctx.getDispatcher();
Locale locale = (Locale) context.get("locale");
Map<String, Object> result = null;
Expand Down Expand Up @@ -193,6 +193,8 @@ private static Map<String, Object> prepareNotification(DispatchContext ctx, Map<
if (templateData == null) {
templateData = new LinkedHashMap<>();
}
templateData.put("delegator", delegator);
templateData.put("dispatcher", ctx.getDispatcher());

try {
// ensure the baseURl is defined
Expand Down

0 comments on commit c5bd1bc

Please sign in to comment.