Uploaded image for project: 'Confluence Data Center'
  1. Confluence Data Center
  2. CONFSERVER-38504

Space picker shows blank text when default value is set

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Low
    • 5.7
    • None
    • None

    Description

      NOTE: This bug report is for Confluence Server. Using Confluence Cloud? See the corresponding bug report.

      It should be possible to set a default value for the space picker by setting the value attribute on the trigger element. However when you do this the space picker displays the value as blank.

      It looks like this is caused by a simple JS bug. In initSelection.renderSpaces() a array of objects is passed into the callback. This value is eventually passed to the select2 formatSelection() function. This function works with an object, not an array. Changing the code in renderSpaces() to pass in an object should fix the bug.

      Attachments

        Issue Links

          Activity

            People

              merickson Matthew Erickson
              merickson Matthew Erickson
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: