Uploaded image for project: 'XNAT'
  1. XNAT
  2. XNAT-5955

XNAT.data.context.scans object doesn't handle empty values well

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.7.5.2
    • Fix Version/s: 1.7.5.3
    • Component/s: None
    • Labels:
    • Rank:
      0|0hzz0v:v

      Description

      When scans do not have values for some of their fields, such as modality, the XNAT.data.context.scans object on the session page has velocity code as the value instead of no value or an empty value. For example, if there is no modality, the modality field is equal to "$!scan.getProperty("modality")". While the introduction of the XNAT.data.context object is relatively new (https://bitbucket.org/xnatdev/xnat-web/commits/93262307b4862391ee6972fef3ed75a8663dd3d4), similar issues with the display of empty values may be longstanding.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              moore.c@wustl.edu Charlie Moore
              Reporter:
              mfmckay@wustl.edu Mike McKay (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 0 minutes
                  0m
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 1 hour
                  1h