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

Correctly get the limesurvey id

This commit is contained in:
root
2013-09-11 14:59:42 +10:00
parent a4942630c4
commit d23409f110

View File

@@ -428,7 +428,11 @@ function add_case($sample_id,$questionnaire_id,$operator_id = "NULL",$testing =
if (!$db->HasFailedTrans()) //if the transaction hasn't failed
{
$lime_sid = get_limesurvey_id($operator_id);
$sql = "SELECT lime_sid
FROM questionnaire
WHERE questionnaire_id = '$questionnaire_id'";
$lime_sid = $db->GetOne($sql);
if ($lime_sid)
{