mirror of
https://gitee.com/jmix/cuba.git
synced 2024-12-04 12:17:41 +08:00
Merge from trunk 10723
This commit is contained in:
parent
523f3e5364
commit
6c25132ba4
@ -89,10 +89,13 @@ public class CubaDateFieldWrapper extends CustomField {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void setPropertyDataSource(Property newDataSource) {
|
public void setPropertyDataSource(Property newDataSource) {
|
||||||
|
Object newValue = newDataSource != null ? newDataSource.getValue() : null;
|
||||||
|
Object oldValue = getValue();
|
||||||
|
|
||||||
super.setPropertyDataSource(newDataSource);
|
super.setPropertyDataSource(newDataSource);
|
||||||
// support dateField in editable table
|
// support dateField in editable table
|
||||||
if (newDataSource != null && !ObjectUtils.equals(newDataSource.getValue(), getValue()))
|
if (newDataSource != null && !ObjectUtils.equals(newValue, oldValue))
|
||||||
dateField.setValue(newDataSource.getValue());
|
dateField.setValue(newValue);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@ -107,4 +110,4 @@ public class CubaDateFieldWrapper extends CustomField {
|
|||||||
@Override
|
@Override
|
||||||
public void removeAllValidators() {
|
public void removeAllValidators() {
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user