From f0eec4518668e5866de485496060893fafd30bc8 Mon Sep 17 00:00:00 2001 From: Adam Zammit Date: Thu, 24 Jan 2013 15:52:14 +1100 Subject: [PATCH] Update token in quotareport --- admin/quotareport.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/admin/quotareport.php b/admin/quotareport.php index 358b22df..2b87b3e9 100644 --- a/admin/quotareport.php +++ b/admin/quotareport.php @@ -270,7 +270,7 @@ if ($questionnaire_id) JOIN `sample` as sam ON (c.sample_id = sam.sample_id AND sam.import_id = '$sample_import_id') WHERE ".implode(' AND ',$sqlq)." "." AND submitdate IS NOT NULL - AND s.token = c.case_id"; + AND s.token = c.token"; $rs = $db->GetRow($sql);