BF [ adempiere-Bugs-1660595 ] Date field: incorrect functionality on paste
This commit is contained in:
parent
d920109b47
commit
8b6f606c80
|
@ -447,8 +447,17 @@ public class VDate extends JComponent
|
||||||
if (m_text == null || m_text.getText() == null)
|
if (m_text == null || m_text.getText() == null)
|
||||||
return;
|
return;
|
||||||
Object value = getValue();
|
Object value = getValue();
|
||||||
if (value == null && isMandatory() )
|
if (value == null && isMandatory() ) {
|
||||||
setValue(startCalendar(this, getTimestamp(), m_format, m_displayType, m_title));
|
// teo_sarca [ 1660595 ] Date field: incorrect functionality on paste
|
||||||
|
// setValue(startCalendar(this, getTimestamp(), m_format, m_displayType, m_title));
|
||||||
|
Timestamp ts = startCalendar(this, getTimestamp(), m_format, m_displayType, m_title);
|
||||||
|
if (ts != null) {
|
||||||
|
setValue(ts);
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
setValue(m_oldText);
|
||||||
|
}
|
||||||
|
}
|
||||||
else
|
else
|
||||||
setValue(value);
|
setValue(value);
|
||||||
} // focusLost
|
} // focusLost
|
||||||
|
|
Loading…
Reference in New Issue