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

Categories are lost when a pre-existing document is saved as Draft

    Details

      Description

      Description
      Categories are lost when a pre-existing document is saved as Draft

      We reference the NEW assetClassPk in edit_file_entry.jsp, since the new draft assetEntry doesn't have any categories, the draft is saved without any categories, and if it is moved from the draft -> publish state. The original categories are lost.

      Steps to reproduce/Testing done

      1. Add dl.file.entry.drafts.enabled=true to your portal-ext
      2. Start Liferay and login as admin
      3. Go to Admin > Content > Categories
      4. Add a new vocabularly and 2 categories in that new vocab
      5. Go to Admin > Content > Documents and Media
      6. Add a new Basic Document and assign it to both categories from the new vocab
      7. Publish
      8. Edit the new document added previously
      9. Hit 'Save as Draft'
      10. View the document and notice no categories are assigned
      11. Edit the document and notice that no categories are assigned

      Results of Testing
      Expected behavior: Categories are not lost when a pre-existing document is saved as Draft
      Actual behavior: Categories are lost when a pre-existing document is saved as Draft

      Errors/Logs
      n/a

      Reproduced...
      Reproduced in trunk? Yes (c1afa8d003fc1c4ee2a493bcaa45ff5727390c33)
      Reproduced in 6.2.x? Yes (4983ac9ceab9a01a490525581ceeb32f4c2d753f)

        Attachments

        1. fix.png
          fix.png
          40 kB
        2. reproduce.png
          reproduce.png
          33 kB

          Issue Links

            Activity

              People

              Assignee:
              melody.wu Melody Wu
              Reporter:
              steven.smith Steven Smith (Inactive)
              Participants of an Issue:
              Recent user:
              Csaba Turcsan
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                5 years, 28 weeks ago

                  Packages

                  Version Package
                  6.2.X EE
                  7.0.0 DXP FP8
                  7.0.0 DXP SP2
                  7.0.3 CE GA4
                  Master