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

          Hide
          (inactive) Gunnstein Lye added a comment -

          issue-6744-trunk.diff Fixes the bug, for trunk 4.3

          Show
          (inactive) Gunnstein Lye added a comment - issue-6744-trunk.diff Fixes the bug, for trunk 4.3
          Hide
          (inactive) Gunnstein Lye added a comment -

          issue-6744-trunk.diff Improved patch, solves a secondary bug

          Show
          (inactive) Gunnstein Lye added a comment - issue-6744-trunk.diff Improved patch, solves a secondary bug
          Hide
          (inactive) Gunnstein Lye added a comment -

          Fixed in
          trunk (4.3.0beta2) rev. 25053
          stable/4.2 (4.2.1) rev. 25054
          stable/4.1 (4.1.5) rev. 25055
          stable/4.0 (4.0.8) rev. 25056

          Show
          (inactive) Gunnstein Lye added a comment - Fixed in trunk (4.3.0beta2) rev. 25053 stable/4.2 (4.2.1) rev. 25054 stable/4.1 (4.1.5) rev. 25055 stable/4.0 (4.0.8) rev. 25056
          Hide
          (inactive) Gunnstein Lye added a comment -

          This works on too many rows, it's a performance problem.

          Show
          (inactive) Gunnstein Lye added a comment - This works on too many rows, it's a performance problem.
          Hide
          (inactive) Gunnstein Lye added a comment -

          Fixed in
          trunk (4.3.0beta2) rev. 25065
          stable/4.2 (4.2.1) rev. 25066
          stable/4.1 (4.1.5) rev. 25067
          stable/4.0 (4.0.8) rev. 25068

          Show
          (inactive) Gunnstein Lye added a comment - Fixed in trunk (4.3.0beta2) rev. 25065 stable/4.2 (4.2.1) rev. 25066 stable/4.1 (4.1.5) rev. 25067 stable/4.0 (4.0.8) rev. 25068
          Hide
          ezrobot added a comment -

          This issue has been automatically closed due to the lack of activity over a long period of time. It is very likely that it is obsolete, but if you think it is still valid, do not hesitate to reopen it and mention why.

          Show
          ezrobot added a comment - This issue has been automatically closed due to the lack of activity over a long period of time. It is very likely that it is obsolete, but if you think it is still valid, do not hesitate to reopen it and mention why.

            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: