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:
@@ -196,6 +196,27 @@ if (isset($rs) && !empty($rs))
|
||||
}
|
||||
}
|
||||
|
||||
//quota row's full
|
||||
$sql = "SELECT questionnaire_sample_quota_row_id,q.questionnaire_id,sample_import_id,lime_sgqa,value,comparison,completions,quota_reached,q.lime_sid
|
||||
FROM questionnaire_sample_quota_row as qsq, questionnaire as q, operator_questionnaire as oq
|
||||
WHERE oq.operator_id = '$operator_id'
|
||||
AND qsq.questionnaire_id = oq.questionnaire_id
|
||||
AND q.questionnaire_id = oq.questionnaire_id";
|
||||
|
||||
$rs = $db->GetAll($sql);
|
||||
|
||||
if (isset($rs) && !empty($rs))
|
||||
{
|
||||
foreach($rs as $r)
|
||||
{
|
||||
if ($r['quota_reached'] == 1)
|
||||
{
|
||||
print "<p class='error'>" . T_("POSSIBLE ERROR: Row quota reached for this question") . " - " . $r['lime_sgqa'];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
//no tokens table associated with questionnaire in limesurvey
|
||||
|
||||
|
||||
Reference in New Issue
Block a user