Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-16078

Discarding translated draft removes original image

    Details

      Description

      Original image is removed when you add new draft and discard draft. No problem if you edit/discard already published translation.

      The attached patch fixes the bug. The problem is a flaw in the query that checks if an image is used by several versions of an attribute.

      Steps to reproduce

      1. Create and publish an object with an image (ezimage datatype, must be translateable)
      2. Edit the object with new translation, set "Select the language the added translation will be based on:" to something other than "None"
      3. Discard the draft
      4. The original image file is removed. Other image aliases may still exist.

      1. issue-6744-trunk.diff
        3 kB
        (inactive) Gunnstein Lye
      2. issue-6744-trunk.diff
        3 kB
        (inactive) Gunnstein Lye

        Issue Links

          Activity

            People

            • Assignee:
              (inactive) Gunnstein Lye
              Reporter:
              (inactive) Gunnstein Lye
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: