mirror of
https://github.com/ACSPRI/queXS
synced 2024-04-02 12:12:16 +00:00
Added email to respondent popup
Changed id's of self completion outcomes to allow for a few custom ones to not effect Added email validation and token getting functions Optout function of limesurvey to set outcome to refused and add a case note for clarity Need to do: Complete email function to actually send an email invitation
This commit is contained in:
@@ -60,6 +60,29 @@ else
|
||||
{
|
||||
$usquery = "Update ".db_table_name("tokens_{$surveyid}")." set emailstatus='OptOut', usesleft=0 where token=".db_quoteall($token,true);
|
||||
$usresult = $connect->Execute($usquery);
|
||||
|
||||
//queXS addition
|
||||
|
||||
//Set to Hard Refusal, respondent
|
||||
$sql = "UPDATE `case`
|
||||
SET current_outcome_id = 9
|
||||
WHERE token = '$token'";
|
||||
|
||||
$connect->Execute($sql);
|
||||
|
||||
$sql = "SELECT case_id
|
||||
FROM `case`
|
||||
WHERE token = '$token'";
|
||||
|
||||
$case_id = $connect->GetOne($sql);
|
||||
|
||||
|
||||
//Add a case note to clarify (need to translate this string)
|
||||
$sql = "INSERT INTO `case_note` (case_id,operator_id,note,datetime)
|
||||
VALUES ($case_id,1,'Self completion refused via opt out function',NOW())";
|
||||
|
||||
$connect->Execute($sql);
|
||||
|
||||
$html .= $clang->gT('You have been successfully removed from this survey.');
|
||||
}
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user