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

Dynamic settings injections not working in subrequests

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: High High
    • None
    • None
    • Multi Site
    • None
    • ez Publish 5.4

    Description

      A service is configured with the site root (multisite setup)

       etecture.helper.common:
              class: %myservice.class%
              arguments:
                  - "@ezpublish.api.repository"
              calls:
                  - [ setRootLocationId, ["$content.tree_root.location_id$"]]
      

      Services called from a subrequest (twig) are initialised with the location id 2, not the configured one for the siteaccess group. While calling the ConfigResolver (in the same Request in the controller) is okay, delivers the correct id.

      Attachments

        Activity

          People

            Unassigned Unassigned
            shor.tcut shor.tcut
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: