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:
Maxim Gorbunkov 2017-03-31 13:13:43 +04:00
parent 9d1a918d85
commit c497688498

View File

@ -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);
}