IDEMPIERE-553 Can not set Nullable Combobox fields to Null after setting them to a non-null value
This commit is contained in:
parent
f66a728b74
commit
8609a6a53b
|
@ -594,15 +594,11 @@ public abstract class PO
|
||||||
log.log(Level.WARNING, "Index invalid - " + index);
|
log.log(Level.WARNING, "Index invalid - " + index);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
Object newval = m_newValues[index];
|
if (m_newValues[index] == null)
|
||||||
if (newval == Null.NULL)
|
|
||||||
newval = null;
|
|
||||||
Object oldval = m_oldValues[index];
|
|
||||||
if (newval == null && oldval == null)
|
|
||||||
return false;
|
return false;
|
||||||
if (newval == null)
|
if (m_newValues[index] == Null.NULL && m_oldValues[index] == null)
|
||||||
return false;
|
return false;
|
||||||
return !newval.equals(oldval);
|
return !m_newValues[index].equals(m_oldValues[index]);
|
||||||
} // is_ValueChanged
|
} // is_ValueChanged
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue