From 1270cd8641f57f752eda7befe728cce05b5fb248 Mon Sep 17 00:00:00 2001
From: Peter Hormanns <peter.hormanns@hostsharing.net>
Date: Fri, 20 May 2011 18:26:37 +0200
Subject: [PATCH] fix error

---
 hsarback/src/de/hsadmin/mods/email/EMailAddress.java |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/hsarback/src/de/hsadmin/mods/email/EMailAddress.java b/hsarback/src/de/hsadmin/mods/email/EMailAddress.java
index 693cba6..f9dbe32 100644
--- a/hsarback/src/de/hsadmin/mods/email/EMailAddress.java
+++ b/hsarback/src/de/hsadmin/mods/email/EMailAddress.java
@@ -77,7 +77,7 @@
 		}
 		String[] doms = parts[1].split("\\.");
 		StringBuilder query = new StringBuilder("localpart='" + parts[0]
-				+ "' AND ( ( subdomain IS NULL AND domain.name='" + parts[1]
+				+ "' AND ( ( obj.subdomain IS NULL AND obj.domain.name='" + parts[1]
 				+ "' )");
 		for (int subdomLevel = 1; subdomLevel < doms.length - 1; ++subdomLevel) {
 			String subdom = "";
@@ -86,8 +86,8 @@
 			String domain = "";
 			for (int n = subdomLevel; n < doms.length; ++n)
 				domain += "." + doms[n];
-			query.append(" OR ( subdomain='" + subdom.substring(1)
-					+ "' AND domain.name='" + domain.substring(1) + "' )");
+			query.append(" OR ( obj.subdomain='" + subdom.substring(1)
+					+ "' AND obj.domain.name='" + domain.substring(1) + "' )");
 		}
 		query.append(" )");
 		String queryString = query.toString();

--
Gitblit v1.9.1