mirror of
https://github.com/ACSPRI/queXS
synced 2024-04-02 12:12:16 +00:00
Bug in samplesearch.php where multiple records are returned for a sample record. The number of records returned is the same as the number of sample_vars
This commit is contained in:
@@ -101,7 +101,8 @@ if ($sample_import_id != false)
|
||||
FROM sample_var AS sv
|
||||
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";
|
||||
WHERE sv.val LIKE $search
|
||||
GROUP BY s.sample_id";
|
||||
|
||||
$r = $db->GetAll($sql);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user