From 264870dec37c80e77d755f085d3b05863386156d Mon Sep 17 00:00:00 2001 From: Peter Hormanns Date: Thu, 14 Jul 2011 16:51:06 +0000 Subject: [PATCH] create pac-domain --- hsarback/src/de/hsadmin/mods/pac/PacModuleImpl.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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