Uploaded image for project: 'eZ Platform Enterprise Edition'
  1. eZ Platform Enterprise Edition
  2. EZEE-2320

Page Builder SA select menu doesn't take content.tree_root.location_id setting into account

    XMLWordPrintable

    Details

      Description

      Steps to reproduce

      1. Create clean installation of eZ Platform EE v2.2.2,
      2. Create the new siteaccess, for instance, nor,
      3. Create a directory nor in the content root (Home), let's assume that it has location 59, and directory eng in the content root (Home), let's assume it has location (62)
      4. Configure both nor and eng siteaccesses and set content.tree_root.location_id:
        ezpublish: 
            system:
                nor:
                    languages: [nor-NO]
                    content:
                        tree_root:
                            location_id: 59
                            excluded_uri_prefixes: [ /media, /users ]
                eng:
                    languages: [eng-GB]
                    content:
                        tree_root:
                            location_id: 62
                            excluded_uri_prefixes: [ /media, /users ]
        
      5. Configure Page Builder to work with the new siteaccess:
        ezpublish: 
            system:
                admin_group:
                    page_builder:
                        siteaccess_list: [site, nor]
        
      6. From the Dashboard, click on Page and select nor siteaccess

      Result:
      Page Builder will load the correct location (given in content.tree_root.location_id setting) preview, but after switching to Edit mode, default root location edit view will be shown (Location ID 2 instead of configured one).

      Expected result:
      Page Builder should load preview and edit view for the configured location ID instead of default root location.

      This behavior is caused by the wrong location ID set in the Page Builder siteaccess picker menu, because the edit preview depends on the value from menu.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              kamil.madejski@ez.no Kamil Madejski
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: