fix emailalias target mapping from hsscript

This commit is contained in:
Peter Hormanns 2018-07-05 15:21:17 +02:00
parent a6a2298a5c
commit bd20e69e15

View File

@ -48,6 +48,19 @@ public class EMailAliasRemote extends AbstractRemote {
alias.setTarget(target);
}
}
if (l instanceof Map<?, ?>) {
final StringBuffer tBuff = new StringBuffer();
final Map<? ,?> targetObjMap = (Map<?, ?>) l;
for (Object targetObj : targetObjMap.values()) {
if (targetObj instanceof String) {
if (tBuff.length() > 0) {
tBuff.append(',');
}
tBuff.append((String) targetObj);
}
}
alias.setTarget(tBuff.toString());
}
if (l instanceof Object[]) {
StringBuffer tBuff = new StringBuffer();
Object[] targetObjArray = (Object[]) l;