Uploaded image for project: 'Nuxeo Elements'
  1. Nuxeo Elements
  2. ELEMENTS-320

Allow resolveEntry to be overriden on select2. Override it on nuxeo-user-suggestion

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.0.0
    • Component/s: UI

      Description

      The nuxeo-user-suggestion has a "prefixed" mode , in which the "prefixed_id" is used instead of "id" field.

      -select2-behaviour uses has a "resolveEntry" function that "transforms" input entries into objects with "id" and "displayLabel" fields.

      -when using the nuxeo-user-suggestion in the "prefixed" mode, these two fields are not be enough as it requires a "prefixed_id" field that is not there.

      Therefore, the resolveEntry must be allowed to be overriden and the nuxeo-user-suggestion should override it.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: