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

class/copy doesn't generate new remote id

    XMLWordPrintable

Details

    Description

      When you click the copy class icon in admin that leads you to class/copy/<id> view, the new class gets the same remote id as the old one.

      This leads to issues when you're for instance work on a local copy of a site, and want to export your new class (a copy) to the live server that already have the class the copy class is based on. Basically you'll get a warning when you try to import it that the class already exists and options to overwrite it or create a new class based on the package (so it ends up with a different identifier++).

      Steps to reproduce

      1. Create a copy of a class
      2. Look in the ezcontentclass table and compare the remote_id on the two classes

      Attachments

        1. fixclassremoteid.php
          4 kB
        2. fixclassremoteid.php
          4 kB
        3. fixclassremoteid.php
          4 kB
        4. issue_13060_trunk.patch
          0.4 kB

        Activity

          People

            cyberwolf cyberwolf
            andre1 andre1
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: