IDEMPIERE-1733 Cannot change Currency To in window Currency Rate / two special cases of foreign keys as String

This commit is contained in:
Carlos Ruiz 2015-02-26 19:52:15 -05:00
parent 8e03122c9e
commit e2016a6b77
2 changed files with 2 additions and 2 deletions

View File

@ -52,7 +52,7 @@ public class ResetLockedAccount extends SvrProcess {
.append(" AND DateAccountLocked IS NOT NULL ")
.append(" AND AD_User_ID = " + user.getAD_User_ID());
int no = DB.executeUpdate(sql.toString(), new Object[] { p_AD_Client_ID }, false, get_TrxName());
if (no < 0)
if (no <= 0)
throw new AdempiereException("Could not unlock user account" + user.toString());
StringBuilder msgreturn = new StringBuilder("@OK@ - The user '").append(user.getName()).append("' has been unlocked");

View File

@ -3208,7 +3208,7 @@ public class GridTable extends AbstractTableModel
columnName = field.getColumnName();
displayType = field.getDisplayType();
// Integer, ID, Lookup
if (displayType == DisplayType.Integer || DisplayType.isID(displayType))
if (displayType == DisplayType.Integer || (DisplayType.isID(displayType) && !(columnName.equals("EntityType") || columnName.equals("AD_Language"))))
{
rowData[j] = new Integer(rs.getInt(j+1)); // Integer
if (rs.wasNull())