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

Remove unused columns from get_case_id select statement

Make sure to make cases and sample records unavailable before sorting enabled ones
This commit is contained in:
azammitdcarf
2011-02-08 02:11:42 +00:00
parent faf69e5610
commit 13d9c856e3
2 changed files with 19 additions and 1 deletions

View File

@@ -334,7 +334,7 @@ function get_case_id($operator_id, $create = false)
* @todo also could check the respondent_not_available table to see if now is a "bad time" to call
*/
$sql = "SELECT c.case_id as caseid,s.*,apn.*,a.*,sh.*,op.*,cr.*,si.*,CONVERT_TZ(NOW(), 'System' , s.Time_zone_name) as resptime
$sql = "SELECT c.case_id as caseid
FROM `case` as c
LEFT JOIN `call` as a on (a.call_id = c.last_call_id)
JOIN (sample as s, sample_import as si) on (s.sample_id = c.sample_id and si.sample_import_id = s.import_id)