diff --git a/hsarback/src/de/hsadmin/mods/pac/PacModuleImpl.java b/hsarback/src/de/hsadmin/mods/pac/PacModuleImpl.java index 7b9d165..b5e0e38 100644 --- a/hsarback/src/de/hsadmin/mods/pac/PacModuleImpl.java +++ b/hsarback/src/de/hsadmin/mods/pac/PacModuleImpl.java @@ -100,12 +100,13 @@ public class PacModuleImpl extends AbstractModuleImpl { if (maxUid >= nUID) nUID = maxUid + 1; admin.setUserId(nUID); users.add(admin); + AbstractEntity newPacEntity = super.add(newEntity); GenericModuleImpl helperModule = new GenericModuleImpl(getTransaction()); Domain pacDomain = new Domain(); pacDomain.setName(pac.getName() + ".hostsharing.net"); pacDomain.setUser(admin); helperModule.add(pacDomain); - return super.add(newEntity); + return newPacEntity; } @Override