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

New feature: Seperate limesurvey instrument for respondent selection

Dev Merged back changes from mcmasterlimers branch
This commit is contained in:
azammitdcarf
2010-09-29 23:19:08 +00:00
parent 19143de1c0
commit 0ef7c93737
18 changed files with 674 additions and 33 deletions

View File

@@ -117,12 +117,19 @@ if ((isset($_POST['fieldnames']) && $_POST['fieldnames']) || (isset($_POST['move
{
if ($result=$connect->Execute($subquery)) // Checked
{
if (substr($subquery,0,6)=='INSERT')
{
$tempID=$connect->Insert_ID($thissurvey['tablename'],"id"); // Find out id immediately if inserted
$_SESSION['srid'] = $tempID;
$saved_id = $tempID;
}
//queXS addition
include_once('quexs.php');
global $surveyid;
quexs_update_sample($surveyid,$saved_id,$postedfieldnames);
if ($bFinalizeThisAnswer === true)
{
$connect->Execute("DELETE FROM ".db_table_name("saved_control")." where srid=".$_SESSION['srid'].' and sid='.$surveyid); // Checked