fix emailalias target mapping from hsscript
This commit is contained in:
parent
a6a2298a5c
commit
bd20e69e15
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user