mirror of
https://github.com/ACSPRI/queXS
synced 2024-04-02 12:12:16 +00:00
Merging the updated Limesurvey 1.92+ branch of queXS to trunk
This commit is contained in:
@@ -10,7 +10,7 @@
|
||||
* other free or open source software licenses.
|
||||
* See COPYRIGHT.php for copyright notices and details.
|
||||
*
|
||||
* $Id: resetsurveylogic.php 10925 2011-09-02 14:12:02Z c_schmitz $
|
||||
* $Id: resetsurveylogic.php 11664 2011-12-16 05:19:42Z tmswhite $
|
||||
*/
|
||||
|
||||
//Ensure script is not run directly, avoid path disclosure
|
||||
@@ -55,6 +55,7 @@ if (!isset($ok) || !$ok)
|
||||
else //delete conditions in the survey
|
||||
{
|
||||
$dict = NewDataDictionary($connect);
|
||||
LimeExpressionManager::RevertUpgradeConditionsToRelevance($surveyid);
|
||||
|
||||
$resetlogicquery = "DELETE FROM {$dbprefix}conditions WHERE qid in (select qid from {$dbprefix}questions where sid=$surveyid)";
|
||||
$resetlogicresult = $connect->Execute($resetlogicquery) or safe_die ("Couldn't delete conditions<br />$resetlogicquery<br />".$connect->ErrorMsg());
|
||||
|
||||
Reference in New Issue
Block a user