Uploaded image for project: 'Hippo CMS'
  1. Hippo CMS
  2. CMS-14918

Seeing "No Characteristics" when creating variant in Experience Manager

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Normal
    • Resolution: Fixed
    • 14.7.2, 14.7.3
    • None
    • cms, cms7-project
    • None
    • MacOS 11.6.1 (20G224)
      Chrome Version 96.0.4664.110 (Official Build) (x86_64)

    Description

      After upgrading to latest release 14.7.3, the Characteristic modal stopped working in Experience Manager when trying to add a new variant for a component on an xpage.

      Steps to Reproduce

      1. Install brXM v14.7.3 and the Relevance Module.
      2. Create a new page and place a component on the page.
      3. Create a variant of the component and try to add a Characteristic.
      4. See the Characteristics Modal with the message "No Characteristics"

      In browser console there is this error message

      ERROR Error: Uncaught (in promise): Error: Characteristic with id "city" is not supported

      Which points to this function:

        _getCharacteristicConfigKey(id) {
          const customCharacteristic = Object.entries(this._characteristicsConfig)
            .find(([, value]) => value.characteristic === id);
      
          if (customCharacteristic) {
            return customCharacteristic[0];
          }
      
          // Error thrown here...
          throw new Error(`Characteristic with id "${id}" is not supported`); 
        }
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            twm-sforsberg Sebastian Forsberg
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: