Uploaded image for project: 'CMS'
  1. CMS
  2. CMS-6707

The choose site helper show an empty tree

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 4.0 alpha
    • 4.0.0
    • None
    • None

      At least when opened from the select site widget

          [CMS-6707] The choose site helper show an empty tree

          Ametys.web.site.SitesTree is used from different places in particular the select site widget and the admin workspace.

          • The tree store url is administrator/sites.json and must be changed to not refers to admin (might be configurable in the tree, but the default url should not be this one)
          • Currently rights are tested on each sites (which is desired in the admin workspace, but not in the case of the select site widget).

          Possible solution:

          • use by default an url of the type '/sites.json' and do not check rights.
          • in the admin workspace, load the site tree with the url administrator/sites.json that will do the same as sites.json but also check the rights.

          Thibaut Rizzi (Inactive) added a comment - Ametys.web.site.SitesTree is used from different places in particular the select site widget and the admin workspace. The tree store url is administrator/sites.json and must be changed to not refers to admin (might be configurable in the tree, but the default url should not be this one) Currently rights are tested on each sites (which is desired in the admin workspace, but not in the case of the select site widget). Possible solution: use by default an url of the type '/sites.json' and do not check rights. in the admin workspace, load the site tree with the url administrator/sites.json that will do the same as sites.json but also check the rights.

            trizzi Thibaut Rizzi (Inactive)
            trizzi Thibaut Rizzi (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: