You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@isis.apache.org by mg...@apache.org on 2015/03/05 08:35:18 UTC

isis git commit: ISIS-1067 EmailNotificationServiceDefault should replace all occurrences of ${confirmationUrl} in the email template

Repository: isis
Updated Branches:
  refs/heads/master f74a1ffab -> 7a687f092


ISIS-1067 EmailNotificationServiceDefault should replace all occurrences of ${confirmationUrl} in the email template


Project: http://git-wip-us.apache.org/repos/asf/isis/repo
Commit: http://git-wip-us.apache.org/repos/asf/isis/commit/7a687f09
Tree: http://git-wip-us.apache.org/repos/asf/isis/tree/7a687f09
Diff: http://git-wip-us.apache.org/repos/asf/isis/diff/7a687f09

Branch: refs/heads/master
Commit: 7a687f09291c63b06095f50d01fa1557cba97bc1
Parents: f74a1ff
Author: Martin Tzvetanov Grigorov <mg...@apache.org>
Authored: Wed Mar 4 15:19:51 2015 +0200
Committer: Martin Tzvetanov Grigorov <mg...@apache.org>
Committed: Thu Mar 5 09:35:06 2015 +0200

----------------------------------------------------------------------
 .../runtime/services/userreg/EmailNotificationServiceDefault.java  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/isis/blob/7a687f09/core/runtime/src/main/java/org/apache/isis/core/runtime/services/userreg/EmailNotificationServiceDefault.java
----------------------------------------------------------------------
diff --git a/core/runtime/src/main/java/org/apache/isis/core/runtime/services/userreg/EmailNotificationServiceDefault.java b/core/runtime/src/main/java/org/apache/isis/core/runtime/services/userreg/EmailNotificationServiceDefault.java
index 4b011fa..2a51c29 100644
--- a/core/runtime/src/main/java/org/apache/isis/core/runtime/services/userreg/EmailNotificationServiceDefault.java
+++ b/core/runtime/src/main/java/org/apache/isis/core/runtime/services/userreg/EmailNotificationServiceDefault.java
@@ -162,7 +162,7 @@ public class EmailNotificationServiceDefault implements EmailNotificationService
     protected String replace(final String template, final EmailEventAbstract emailEvent) {
         String message = template;
         message = EMAIL_PATTERN.matcher(message).replaceFirst(emailEvent.getEmail());
-        message = CONFIRMATION_URL_PATTERN.matcher(message).replaceFirst(emailEvent.getConfirmationUrl());
+        message = CONFIRMATION_URL_PATTERN.matcher(message).replaceAll(emailEvent.getConfirmationUrl());
         message = APPLICATION_NAME_PATTERN.matcher(message).replaceAll(emailEvent.getApplicationName());
         return message;
     }