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

Zone ID not changed when cloning eZPageZone

    XMLWordPrintable

Details

    Description

      Taking a \eZPageZone and try to clone it via clone $pageZone. The zone has a new IDs, the blocks have new IDs, but the zone_id inside the blocks are kept and do not match the id of the newly created zone. Don't know if this will have any effect, but it seems inconsistent and wrong.

      source:

      <?xml version="1.0"?>
      <page>
        <zone_layout>stvd_zone_layout_series</zone_layout>
        <zone id="id_a2614f21683543ec69254144dc12339d">
          <zone_identifier>main</zone_identifier>
          <block id="id_6c06e50939bbd81e4b2e9d7c2c1a84dd">
            <name></name>
            <zone_id>a2614f21683543ec69254144dc12339d</zone_id>
            <type>my_block</type>
            <view>default</view>
            <overflow_id></overflow_id>
          </block>
        </zone>
      </page>
      

      clone:

      <?xml version="1.0"?>
      <page>
        <zone_layout>stvd_zone_layout_series</zone_layout>
        <zone id="id_9132cff962f3e1bba19716263e7e6cdf">
          <zone_identifier>main</zone_identifier>
          <block id="id_2dcce4012095d94398031367644961bd">
            <name></name>
            <zone_id>a2614f21683543ec69254144dc12339d</zone_id>
            <type>my_block</type>
            <view>default</view>
            <overflow_id></overflow_id>
          </block>
        </zone>
      </page>
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              5860e71c-1364-4e9a-9f7c-45017c6b4c16@accounts.ibexa.co Hannes Giesenow
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: