Issue
- Default values in structure with repeatable field don't work as expected.
- After creating an exporting a structure with a repeatable field, the default value is empty, despite being defined in the structure
Steps to reproduced
- Go to Content & Data -> Structures (tab).
- Create new Structure (st_Test).
- Drag Text field to st_Test and check it as Repeatable.
- Save new structure.
- Click on three dots and go to Edit Default Values.
- Fill field text with "This is a test" and save
- Go back to Web Content (tab) and create new Web Content (wc_Test) based on st_Test.
- Click on “+” on field text to duplicate it.
Expected behavior: New duplicate field keep the default value ("this is a test")
Actual behavior: New duplicate field doesn't have default value.
Environment
- Liferay DXP 7.4
- Liferay DXP Quarterly Release
Resolution
- To resolve this behavior, upgrade to Liferay DXP 2024.Q2.5+, or request a hotfix built on LPD-28728, if you are still within the Support Coverage window.
Additional Information