Skip to content
Snippets Groups Projects
Commit ae6fa894 authored by buczekp's avatar buczekp
Browse files

[LMS-1264] fixed extraction of affiliation from property key

SVN: 13563
parent a7de6081
No related branches found
No related tags found
No related merge requests found
......@@ -78,8 +78,8 @@ public class EntityTrackingEmailGenerator implements IEntityTrackingEmailGenerat
if (propertyKey.endsWith(AFFILIATION_NOTIFICATION_EMAIL_CONTACT_SUFFIX))
{
final String affiliation =
propertyKey.substring(0, AFFILIATION_NOTIFICATION_EMAIL_CONTACT_SUFFIX
.length() - 1);
propertyKey.substring(0, propertyKey.length()
- AFFILIATION_NOTIFICATION_EMAIL_CONTACT_SUFFIX.length());
final String affiliationRecipient =
PropertyUtils.getMandatoryProperty(properties, propertyKey);
result.put(affiliation, affiliationRecipient);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment