Affects Version/s: 6.2.10 EE GA1, 6.2.X EE, 7.0.0 Beta 3
Component/s: Dynamic Data Mapping
- Create a web content structure with a select field, the field should be required and multiple choice should be enabled as well
- Add a template for this structure
- Create a web content with this structure, add a title and do NOT select any of the options in the select field
As the select field is required, a validation error should occur because the field is left untouched.
No validation error appears.
On master creating a web content structure is impossible, so it can not be reproduce.
However it can be easily reproduce on 6.2.x and it the code clearly shows that the bug exists
The root cause is in DDMXMLImpl.java, getFields method.
Here the dynamicContentElements is empty because the user did not choose any option from the multi-select field.
Unfortunately in this case the getFields method will not return with the select field so later the code will not check if it is required or not.