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

CLONE - Line breaks are not handled properly in textarea fields of Dynamic Data Lists

Details

    Description

      ee-6.1.x Steps to reproduce:

      1. In Control Panel go to Dynamic Data Lists
      2. Click on Add
      3. Type in a name and click on "Select" for the Data Definition
      4. Click on Add and create a Data Definition with a Text Box (Type textarea).
      5. Click on "Save" to create the Dynamic Data Lists
      6. Click on the Dynamic Data List to open it
      7. Click on "Add Record"
      8. Enter some data, which uses line breaks (i.e. a<enter>b<enter>c) in the Text box and click "Publish".
      9. Verify the presentation in the table.

      Expected result: the line breaks should be there.
      Actual result: the line breaks are not shown.

      10. Click on Actions --> View.

      Expected result: the line breaks should be visible (i.e. the contents should be on different line, like in edit mode).
      Actual result: the complete text from the text box is displayed on one line.

      11. In the Dynamic Datalists Overview use the actions button for the DDL and select "Spreadsheet View".
      12. Create a new entry (i.e. d<enter>e<enter>f) and confirm it with "Save". Notice that it is displayed correctly in the spreadsheet view.
      13. Go back and open the Dynamic Data List again and verify the new entry.

      Expected result: the line breaks should be there.
      Actual result: the line breaks are displayed as <br/>.

      14. Click on Actions --> View for the list entry. Again you see <br/> instead of line breaks. The same happens for Actions --> Edit.

      To sum it up: Line breaks are not handled properly in textarea fields of DDLs. Furthermore they are handled inconsistently, dependent on which option for editing the entries is chosen.

      Attachments

        1. Fixed.PNG
          Fixed.PNG
          13 kB
        2. Fixed2.PNG
          Fixed2.PNG
          6 kB
        3. Fixed3.PNG
          Fixed3.PNG
          24 kB
        4. Fixed62.PNG
          Fixed62.PNG
          30 kB
        5. reproduce.png
          reproduce.png
          32 kB

        Issue Links

          Activity

            People

              melody.wu Melody Wu
              jonathan.mak Jonathan Mak (Inactive)
              Kiyoshi Lee Kiyoshi Lee
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                5 years, 35 weeks, 3 days ago

                Packages

                  Version Package
                  7.0.0 DXP FP30
                  7.0.X EE
                  7.0.4 CE GA5
                  7.1.X
                  Master