Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-120732

Separator in Web Content Structures causes incrementation issues and loss of data on edit save

Details

    • Bug
    • Status: Verified
    • Resolution: Unresolved
    • 7.0.10.14 DXP SP14, 7.0.X, 7.1.10 DXP FP18, 7.1.X, 7.2.10 DXP FP5, 7.2.10 DXP FP7, 7.2.X, 7.3.4 CE GA5
    • None
    • Dynamic Data Mapping
    • None

    Description

      Description: Web Content Structure Builder fails to increment repeated field names inside a Separator Field on an edit. This causes loss of all edits on save. 

       

      Steps to reproduce:

      1. Content & Data > Web Content > Structures tab > Add new (blue plus)
      2. Name your structure "Test title"
      3. Drag and drop two separator fields
      4. For each separator, drag and drop a text field inside
      5. For each text field, change the FILED LABEL to the same value - "Test" - by double clicking on the field. ---> Notice that the NAME field is incremented - "Test" and "Test1"
      6. Save the structure
      7. Now open the structure again and add another Separator field
      8. Add a Text field inside the separator
      9. Name the Text field the same thing: "Test" --> Notice the field NAME is NOT incremented
      10. Save the structure

       

       Expected Results: New text field NAME is incremented and saved OR an error is thrown with edits still present, allowing the user to fix them manually.

       Actual Results:  'Error: The definition field name Test was defined more than once.' is thrown and all modifications are lost. 

       

      Notes:

      • This behavior is repeatable with other field types, can mix and match.  
      • I cannot replicate this behavior without the separator field. 

      Attachments

        1. [2] ActualResult-Feb11-LPS120732.mp4
          2.67 MB
        2. Actual.gif
          Actual.gif
          1.55 MB
        3. ActualResult_Jan20_LPS-120732.mp4
          1.44 MB
        4. ActualResult-Feb11-LPS120732.mp4
          2.10 MB
        5. alternative_steps.mp4
          2.44 MB
        6. Edit Fails All Changes Lost.png
          Edit Fails All Changes Lost.png
          81 kB
        7. Incremented Value Originally.png
          Incremented Value Originally.png
          68 kB
        8. New_Structure_-_Liferay.png
          New_Structure_-_Liferay.png
          197 kB
        9. Not Incremented On Edit.png
          Not Incremented On Edit.png
          72 kB

        Activity

          People

            support-lep@liferay.com SE Support
            ekaterina.nesterovich Ekaterina Nesterovich (Inactive)
            Kiyoshi Lee Kiyoshi Lee
            Guilherme Camacho Guilherme Camacho
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              2 years, 10 weeks, 6 days ago

              Packages

                Version Package