Affects Version/s: 6.2.0 CE GA1, 6.2.10 EE GA1, 6.2.X EE, 7.0.0 M3
Environment:Tomcat 7.0.42 + MySQL 5.5.33. Portal ee-6.2.x EE GIT ID: 740154bcfe4bbc17d36a3b1f7069043c5c5da5b3.
Tomcat 7.0.42 + MySQL 5.5.33. Portal master GIT ID: 7a60a426cc8b01f36b0f4f25021d4c86fc4dca7a.
Consider the following DDL Data Definition:
- First Name (text)
- Last Name (text)
- Email (text)
- Favorite Liferay Developer (text)
Creating a new DDL list based on this definition, and displaying it on a page via the DDL Display portlet works as expected - users can enter new records using the default form template and displayed properly using the default display template.
But if a custom form template is used which puts one or more fields within a fieldset, when users enter new records, the fields in the fieldset are lost and never recorded.
Steps to reproduce:
1. Create a DDL definition as above (with 4 fields)
2. Place it on a page using DDL Display portlet, enter a record, observe all 4 fields are correctly displayed.
3. Create a custom DDL form, and in that form add a fieldset and place the firstname and lastname fields within the fieldset, so it looks like the screenshot. Configure the DDL Display Portlet to use this form when entering new records.
4. Enter a new record using this custom form, and observe that the fields within the fieldset are not remembered or displayed (you can also observe in the database that the values are never saved). See the second screenshot showing blank cells for those fields that were contained within a fieldset.
Note this sounds suspiciously like