From ae6fa8940fa228744778ae9d2dbc976fbdf33e92 Mon Sep 17 00:00:00 2001 From: buczekp <buczekp> Date: Thu, 26 Nov 2009 08:30:23 +0000 Subject: [PATCH] [LMS-1264] fixed extraction of affiliation from property key SVN: 13563 --- .../cisd/dsu/tracking/email/EntityTrackingEmailGenerator.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/deep_sequencing_unit/source/java/ch/ethz/bsse/cisd/dsu/tracking/email/EntityTrackingEmailGenerator.java b/deep_sequencing_unit/source/java/ch/ethz/bsse/cisd/dsu/tracking/email/EntityTrackingEmailGenerator.java index 84cde175786..f5beaf8d307 100644 --- a/deep_sequencing_unit/source/java/ch/ethz/bsse/cisd/dsu/tracking/email/EntityTrackingEmailGenerator.java +++ b/deep_sequencing_unit/source/java/ch/ethz/bsse/cisd/dsu/tracking/email/EntityTrackingEmailGenerator.java @@ -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); -- GitLab