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

ContentTool doesn't take in care the metadataSet

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 3.5.4, 3.7, 3.9
    • 3.5.4
    • None
    • None

      When I launch the uitool-content like this :

      org.ametys.uitool.ToolsManager.getInstance().openTool("uitool-content", {id: contentId, 'metadataset': metadataSet});

      I show the content with main metadataSet.

      We should use the asked metadataSet.
      To do this, you can add the following code in org.ametys.cms.tool.content.ContentTool.prototype.refresh() method :

      args += '&metadataSetName=' + this._metadataSetName;

      And in org.ametys.cms.tool.content.ContentTool.prototype._updateTooltipText() method, you should have :

      var params = { contentId: this._contentId, metadataSetName: this._metadataSetName };

      instead of :

      var params = { contentId: this._contentId, metadataSetName: 'main' };

            Unassigned Unassigned
            bmaurel Bérénice Maurel
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: