mirror of
https://gitee.com/jmix/cuba.git
synced 2024-12-04 04:07:42 +08:00
PL-8652 The ''Default date is current'' setting for dynamic attribute with the Date type is ignored when the "Default value" is adjusted
This commit is contained in:
parent
9d1a918d85
commit
c497688498
@ -416,6 +416,7 @@ public class AttributeEditor extends AbstractEditor<CategoryAttribute> {
|
||||
if (attribute.getDataType() == PropertyType.DATE) {
|
||||
if (Boolean.TRUE.equals(attribute.getDefaultDateIsCurrent())) {
|
||||
attributeFieldGroup.setVisible("defaultDate", false);
|
||||
attributeFieldGroup.setFieldValue("defaultDate", null);
|
||||
} else {
|
||||
attributeFieldGroup.setVisible("defaultDate", true);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user