aces / Loris

LORIS is a web-accessible database solution for longitudinal multi-site studies.
GNU General Public License v3.0
141 stars 173 forks source link

[media] Remove instrument autoselect #9288

Closed CamilleBeau closed 1 month ago

CamilleBeau commented 1 month ago

Brief summary of changes

This PR removes autoselect for the instrument field in the upload file form. This means that if there is only one instrument in the array, the one instrument will not be selected by default.

I also fixed a spacing issue that I saw in the uploadForm.js file, but is unrelated to this change.

Testing instructions (if applicable)

  1. Go to the "Upload" tab of the media module
  2. Find a PSCID / Visit combination that only has one instrument (if on raisinbread data, try V2 of DCC702)
  3. Make sure that after both a PSCID and Visit are entered, the instrument field remains blank and is not autoselected.

Link(s) to related issue(s)