Skip to content

Commit c4b7b6f

Browse files
zaliqaroslidriusan
authored andcommitted
[DQT] Fix broken file link when querying using 'Add All' (#7823)
Downloadable files i.e. minc files are missing their download links when the 'Add All' button is used to select a query. This fixes that by fixing a typo found. This also fixes a typo in the CouchDB MRI import script that fails to find any scan types to import.
1 parent ac447d0 commit c4b7b6f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

modules/dqt/jsx/react.fieldselector.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,7 @@ class FieldSelector extends Component {
418418
} else {
419419
isFile = (this.state.categoryFields[
420420
category
421-
][i].value.isFile)
421+
][i].value.IsFile)
422422
? true
423423
: false;
424424
this.props.onFieldChange(fieldName, category, isFile);
@@ -447,7 +447,7 @@ class FieldSelector extends Component {
447447
][i].key[0];
448448
if (this.props.selectedFields[category]
449449
&& this.props.selectedFields[category][fieldName]) {
450-
isFile = (this.state.categoryFields[category][i].value.isFile)
450+
isFile = (this.state.categoryFields[category][i].value.IsFile)
451451
? true
452452
: false;
453453
this.props.onFieldChange(fieldName, category, isFile);

tools/CouchDB_MRI_Importer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ function __construct()
6363
function run()
6464
{
6565
$ScanTypes = $this->getScanTypes();
66-
if (empty($scanTypes)) {
66+
if (empty($ScanTypes)) {
6767
fwrite(STDERR, "No scan types found to import.\n");
6868
exit(1);
6969
}

0 commit comments

Comments
 (0)