Commit c08746c3 authored by Adrien's avatar Adrien Committed by benjaminParisel

fix(Data management) mandatory state is taken into account for date (#2729)

widget

[UID-101](https://bonitasoft.atlassian.net/browse/UID-101)
parent 54be7c80
......@@ -143,6 +143,8 @@ public class ParametrizedWidgetFactory {
datePickerComponent.setPlaceholder(reference.getPlaceholder());
datePickerComponent.setShowToday(reference.getShowToday());
datePickerComponent.setTodayLabel(reference.getTodayLabel());
datePickerComponent.setRequired(input.isMandatory());
setValuableWidgetValue(input, datePickerComponent);
return datePickerComponent;
......@@ -162,6 +164,8 @@ public class ParametrizedWidgetFactory {
dateTimePickerComponent.setShowNow(reference.getShowNow());
dateTimePickerComponent.setShowToday(reference.getShowToday());
dateTimePickerComponent.setInlineInput(reference.getInlineInput());
dateTimePickerComponent.setRequired(input.isMandatory());
setValuableWidgetValue(input, dateTimePickerComponent);
return dateTimePickerComponent;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment