IDEMPIERE-742 Can't search user using email address.

This commit is contained in:
Heng Sin Low 2013-03-14 23:56:40 +08:00
parent c24c0f11b6
commit 4249922521
1 changed files with 5 additions and 2 deletions

View File

@ -1367,8 +1367,11 @@ public final class Env
int j = inStr.indexOf('@'); // next @
if (j < 0)
{
getLogger().log(Level.SEVERE, "No second tag: " + inStr);
return ""; // no second tag
if (getLogger().isLoggable(Level.INFO))
getLogger().log(Level.INFO, "No second tag: " + inStr);
//not context variable, add back @ and break
outStr.append("@");
break;
}
token = inStr.substring(0, j);