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

Discarding translated draft removes original image



      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


          (inactive) Gunnstein Lye created issue -
          André Rømcke made changes -
          Field Original Value New Value
          Workflow eZ Community Workflow [ 28784 ] eZ Engineering Scrumban Workflow [ 45952 ]
          André Rømcke made changes -
          Workflow eZ Engineering Scrumban Workflow [ 45952 ] EZ* Development Workflow [ 80400 ]
          Alex Schuster made changes -
          Workflow EZ* Development Workflow [ 80400 ] EZEE Development Workflow [ 118978 ]


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


              • Created: