mirror of
https://github.com/ACSPRI/queXS
synced 2024-04-02 12:12:16 +00:00
Appointment list: error in SQL
No case available, now list quota row's Do not allow the assigning of a case_id or creation of a token in the Limesurvey tables where a transaction has failed
This commit is contained in:
@@ -75,7 +75,7 @@ else
|
||||
$sql = "SELECT q.description, DATE_FORMAT(CONVERT_TZ(c.start,'UTC',r.Time_zone_name),'".DATE_TIME_FORMAT."') as start,DATE_FORMAT(CONVERT_TZ(c.end,'UTC',r.Time_zone_name),'".TIME_FORMAT."') as end, c.completed_call_id, IFNULL(ou.firstName,'" . T_("Not yet called") . "') as firstName, r.firstName as rname, r.lastName as rsname, IFNULL(o.description,'" . T_("Not yet called") . "') as des
|
||||
FROM `appointment` as c
|
||||
JOIN respondent as r on (r.respondent_id = c.respondent_id)
|
||||
JOIN `case` as ca on (ca.case_id = c.case_id)
|
||||
JOIN `case` as cas on (cas.case_id = c.case_id)
|
||||
LEFT JOIN (`call` as ca, outcome as o, operator as ou) on (ca.call_id = c.completed_call_id and ca.outcome_id = o.outcome_id and ou.operator_id = ca.operator_id)
|
||||
WHERE oq.operator_id = '$operator_id'
|
||||
AND ca.questionnaire_id = oq.questionnaire_id
|
||||
|
||||
Reference in New Issue
Block a user