IDEMPIERE-553 Can not set Nullable Combobox fields to Null after setting them to a non-null value

This commit is contained in:
Carlos Ruiz 2013-01-14 18:04:00 -08:00
parent f66a728b74
commit 8609a6a53b
1 changed files with 3 additions and 7 deletions

View File

@ -594,15 +594,11 @@ public abstract class PO
log.log(Level.WARNING, "Index invalid - " + index);
return false;
}
Object newval = m_newValues[index];
if (newval == Null.NULL)
newval = null;
Object oldval = m_oldValues[index];
if (newval == null && oldval == null)
if (m_newValues[index] == null)
return false;
if (newval == null)
if (m_newValues[index] == Null.NULL && m_oldValues[index] == null)
return false;
return !newval.equals(oldval);
return !m_newValues[index].equals(m_oldValues[index]);
} // is_ValueChanged
/**