2
0
mirror of https://github.com/ACSPRI/queXS synced 2024-04-02 12:12:16 +00:00

Handle case where multiple cases are assigned to the same sample (otherwise will not show)

This commit is contained in:
azammitdcarf
2009-03-02 07:00:26 +00:00
parent 7e4ade1ade
commit d3008b7c93

View File

@@ -102,7 +102,7 @@ if ($sample_import_id != false)
JOIN (sample as s) ON (s.import_id = '$sample_import_id' and sv.sample_id = s.sample_id)
LEFT JOIN (`case` AS c, questionnaire AS q) ON ( c.sample_id = sv.sample_id AND q.questionnaire_id = c.questionnaire_id )
WHERE sv.val LIKE $search
GROUP BY s.sample_id";
GROUP BY s.sample_id,c.case_id";
$r = $db->GetAll($sql);