HSAdmin Backend Domains, E-Mail, Datenbanken
Peter Hormanns
2018-07-05 bd20e69e15ff0ebb0434fb022ccc7eb399f9abf0
fix emailalias target mapping from hsscript
1 files modified
13 ■■■■■ changed files
hsarback/src/de/hsadmin/remote/EMailAliasRemote.java 13 ●●●●● patch | view | raw | blame | history
hsarback/src/de/hsadmin/remote/EMailAliasRemote.java
@@ -48,6 +48,19 @@
                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;