Uploaded image for project: '[Read Only] - Addon Channel Manager'
  1. [Read Only] - Addon Channel Manager
  2. CHANNELMGR-1599

Channel manager does not accept components with the same hst:label

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Normal
    • Resolution: Duplicate
    • 5.0.3
    • None
    • None

    Description

      When more than 1 components have the same hst:label channel manager does not load any components and fail with the message 

       

      Stack trace in the browser console:

      Error: [ngRepeat:dupes] Duplicates in a repeater are not allowed. Use 'track by' expression to specify unique keys. Repeater: component in $ctrl.components track by component.label, Duplicate key: SEO, Duplicate value: {"id":"d2219d35-a1e1-42cf-8132-85bfb4813f96","name":"seo","path":"/hst:hst/hst:configurations/common/hst:catalog/xxx-catalog/seo","label":"SEO","iconPath":"images/essentials/catalog-component-icons/seo.png","iconURL":"/site/images/essentials/catalog-component-icons/seo.png","parentId":null,"inherited":true,"prototype":false,"hasContainerInPageDefinition":false,"componentClassName":"dk.xxx.components.SeoComponent","template":null,"type":"CONTAINER_ITEM_COMPONENT","xtype":"hst.nomarkup","lastModifiedTimestamp":0}
      http://errors.angularjs.org/1.5.11/ngRepeat/dupes?p0=component%20in%20%24ctrl.components%20track%20by%20component.label&p1=SEO&p2=%7B%22id%22%3A%22d2219d35-a1e1-42cf-8132-85bfb4813f96%22%2C%22name%22%3A%22seo%22%2C%22path%22%3A%22%2Fhst%3Ahst%2Fhst%3Aconfigurations%2Fcommon%2Fhst%3Acatalog%2Fxxx-catalog%2Fseo%22%2C%22label%22%3A%22SEO%22%2C%22iconPath%22%3A%22images%2Fessentials%2Fcatalog-component-icons%2Fseo.png%22%2C%22iconURL%22%3A%22%2Fsite%2Fimages%2Fessentials%2Fcatalog-component-icons%2Fseo.png%22%2C%22parentId%22%3Anull%2C%22inherited%22%3Atrue%2C%22prototype%22%3Afalse%2C%22hasContainerInPageDefinition%22%3Afalse%2C%22componentClassName%22%3A%22dk.xxx.components.SeoComponent%22%2C%22template%22%3Anull%2C%22type%22%3A%22CONTAINER_ITEM_COMPONENT%22%2C%22xtype%22%3A%22hst.nomarkup%22%2C%22lastModifiedTimestamp%22%3A0%7D
      at angular.js:68
      at angular.js:30586
      at r (angular.js:17699)
      at f.$digest (angular.js:17836)
      at f.$apply (angular.js:18102)
      at s (angular.js:12082)
      at y (angular.js:12291)
      at XMLHttpRequest.E.onload (angular.js:12219)
      

      In the above case there are 2 components called "SEO"

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              nmendes Nuno Mendes (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: