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

In web content with structure, new image is lost if we choose a new image after deleting the previous image.

    Details

      Description

      The issue had been fixed in trunk from https://support.liferay.com/browse/LPS-32306, and only occured in 6.1.x

      Add a web content with a structure/template who has a image field. And then, in web content display portlet, we tried to edit the web content. If we delete the image and then upload a new image. After publishing the web content, the new image is missing.

      Steps:
      1. Add a structure with an image field.
      2. Add a template to display the structure.
      3. Add a web content 'AAA' with the new structure. -> Upload a image in the image field. -> Publish.
      4. Add a web content display portlet in this page to display web content 'AAA'.
      5. Click 'edit' in web content display portlet.
      6. In web content edit page, click link 'show'. Here we can see the image that we previously uploaded.
      7. Click 'Delete' button on the top of the image.
      8. Choose a new image in the image field. -> Publish.

      Current behavior: The new image is missing and can not be displayed in web content display portlet.

      In trunk, if we delete the previous image, the image upload field will be disabled.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              linda.sui Linda Sui
              Reporter:
              hai.yu Hai Yu
              Participants of an Issue:
              Recent user:
              Marta Elicegui
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                7 years, 46 weeks, 5 days ago

                  Packages

                  Version Package
                  6.1.X EE