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

Keep removing direct references to LIME (email needs more work)

This commit is contained in:
Adam Zammit
2017-02-03 11:22:29 +11:00
parent 87391f25a6
commit 1a4b41fd04
3 changed files with 23 additions and 168 deletions

View File

@@ -676,6 +676,20 @@ function create_limesurvey_questionnaire($title,$exittoend = true)
}
function get_lime_url($case_id)
{
global $db;
$sql = "SELECT r.entry_url
FROM remote as r, `case` as c, questionnaire as q
WHERE c.case_id = $case_id
AND c.questionnaire_id = q.questionnaire_id
AND q.remote_id = r.id";
return $db->GetOne($sql);
}
/**
* Return the limesurvey id given the case_id
*