Uploaded image for project: 'Jira Data Center'
  1. Jira Data Center
  2. JRASERVER-24607

Missing span end element in multiselect custom field type

    XMLWordPrintable

Details

    Description

      In the view-multiselect.vm file that is used by the standard "Multi Select" custom field type, the span end element is not added for the last value displayed.

      #if ($value)
          <div class="shorten" id="${customField.id}-field">
              #foreach ($singleValue in $value)
                <span>$!singleValue.toString()#if ($velocityCount != $value.size())</span>,#end
              #end
          </div>
      #end
      

      Moving the span end element outside the test for adding a comma was probably what was intended:

      #if ($value)
          <div class="shorten" id="${customField.id}-field">
              #foreach ($singleValue in $value)
                <span>$!singleValue.toString()</span>#if ($velocityCount != $value.size()),#end
              #end
          </div>
      #end
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              73d805a2526b MattS
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: