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

Backport of [LPS-33448 Dynamic Data List editing clears the attachment uploaded by File Upload option] to ee-6.1.x

    Details

    • Type: Bug
    • Status: Closed
    • Resolution: Reorganized
    • Affects Version/s: 6.1.1 CE GA2, 6.1.20 EE GA2
    • Fix Version/s: None
    • Labels:
    • Environment:
      LIFERAY VERSION: 6.1 GA2
      OPERATING SYSTEM: Windows 7
      APPLICATION SERVER: JBoss 7
      JAVA VIRTUAL MACHINE: Java 6
      DATABASE: Oracle 11.1

      Description

      Steps to reproduce are:
      1. As a "Site Owner", Go to control panel >>> Dynamic Data Lists menu.
      2. Select "Manage Data Definitions" and start by adding a new definition.
      3. Lets call our definition as "DD1", It should have 2 fields, one is a "Text" type and another as "File Upload" type, no other changes are required.
      4. Now save the definition "DD1".
      5. On "Dynamic Data Lists" screen click on "Add" to create a new list, lets keep the name as "List 1". And map the definition "DD1" created above to this "List 1".
      6. Now save the List, thus a new list "List 1" is created mapped to the data definition "DD1".
      7. Now add a new record to the list but specifying some text and attaching a file and save it.
      8. Till now everything works fine but the issue comes while editing the record.
      9. Now if you go to this record and open it in edit mode and either just change the text in "Text" field or does nothing and "Publish" the record. It gives you a success message but file or attachments get removed from the record, which is not what is expected as the data should remain their.

      Another use case is seen if I make this "File Upload" as required field and if I try to edit the record the file attached to it, it shows me the attachment but does not allow me to edit then publish again until an unless I provide the file again.

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                5 years, 17 weeks, 4 days ago

                Packages

                Version Package