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

SearchClientSideElement cannot use an enumerator twice

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 3.4.2, 3.5
    • None
    • None
    • None

      In method _configureEnumerator, each encountered non-static enumerator is registered using its classname for id.

      This prevent from using twice the same class for two enumerators

      The id is never used after (since we keep a pointer on the object)

      here is a patch

      String role = enumeratorClassName + "$" + StringUtils.generateKey();
      ...
      _enumeratorManager.addComponent(_pluginName, null, role, enumeratorClass, customEnumerator);
      ...
      _enumeratorsToLookup.put(prefix, role);
      

            ngavalda Nicolas Gavalda (Inactive)
            raphael Raphaël Franchet
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: