mirror of
https://gitee.com/jmix/cuba.git
synced 2024-12-03 19:57:36 +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
|
||||
public void setPropertyDataSource(Property newDataSource) {
|
||||
Object newValue = newDataSource != null ? newDataSource.getValue() : null;
|
||||
Object oldValue = getValue();
|
||||
|
||||
super.setPropertyDataSource(newDataSource);
|
||||
// support dateField in editable table
|
||||
if (newDataSource != null && !ObjectUtils.equals(newDataSource.getValue(), getValue()))
|
||||
dateField.setValue(newDataSource.getValue());
|
||||
if (newDataSource != null && !ObjectUtils.equals(newValue, oldValue))
|
||||
dateField.setValue(newValue);
|
||||
}
|
||||
|
||||
@Override
|
||||
@ -107,4 +110,4 @@ public class CubaDateFieldWrapper extends CustomField {
|
||||
@Override
|
||||
public void removeAllValidators() {
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user