From 264870dec37c80e77d755f085d3b05863386156d Mon Sep 17 00:00:00 2001
From: Peter Hormanns <peter.hormanns@hostsharing.net>
Date: Thu, 14 Jul 2011 18:51:06 +0200
Subject: [PATCH] create pac-domain

---
 hsarback/src/de/hsadmin/mods/pac/PacModuleImpl.java |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

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 @@
 		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

--
Gitblit v1.9.1