Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

[DQT Importer] Issue where script breaks if scantype has a '-' character #5841

Merged
merged 1 commit into from
Dec 13, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions tools/CouchDB_MRI_Importer.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,12 +99,12 @@ function _generateCandidatesQuery($ScanTypes)
$Query .= ", (SELECT f.File FROM files f LEFT JOIN mri_scan_type msc
ON (msc.ID= f.AcquisitionProtocolID)
WHERE f.SessionID=s.ID AND msc.Scan_type='$scantype' LIMIT 1)
as Selected_$scantype, (SELECT fqc.QCStatus
as `Selected_$scantype`, (SELECT fqc.QCStatus
maltheism marked this conversation as resolved.
Show resolved Hide resolved
FROM files f
LEFT JOIN files_qcstatus fqc USING(FileID)
LEFT JOIN mri_scan_type msc ON(msc.ID= f.AcquisitionProtocolID)
WHERE f.SessionID=s.ID AND msc.Scan_type='$scantype' LIMIT 1)
as $scantype"."_QCStatus";
as `$scantype"."_QCStatus`";
}
$Query .= " FROM session s JOIN candidate c USING (CandID)
LEFT JOIN feedback_mri_comments fmric
Expand Down