I have a user that wants to be able to do multiple completions with one token. They found this workaround for version 1.71 here:
docs.limesurvey.org/tiki-index.php?page=..._with_only_one_token
but I just installed Version 1.91 Build 10120 on a test server and this portion of code is different, so I'm not quite sure how to make the changes for version 1.91.
The section of new code appears like this:
///////
elseif (bIsTokenCompletedDatestamped($thissurvey))
{
if (isset($usesleft) && $usesleft<=1)
{
$utquery .= "SET usesleft=usesleft-1, completed='$today'\n";
}
else
{
$utquery .= "SET usesleft=usesleft-1\n";
}
}
else
{
if (isset($usesleft) && $usesleft<=1)
{
$utquery .= "SET usesleft=usesleft-1, completed='Y'\n";
}
else
{
$utquery .= "SET usesleft=usesleft-1\n";
}
}
/////
Any ideas? Appreciate it.
Lainie