Commit 80dcbf75 authored by Chenu Denis's avatar Chenu Denis
Browse files

[fix] Broke without token table or anonymous survey

parent 86cb1aea
......@@ -6,7 +6,7 @@
* @copyright 2017-2021 Denis Chenu <www.sondages.pro>
* @copyright 2017 OECD (Organisation for Economic Co-operation and Development ) <www.oecd.org>
* @license AGPL v3
* @version 4.2.0
* @version 4.2.1
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE as published by
......@@ -1163,7 +1163,7 @@ class questionExtraSurvey extends PluginBase
{
$extraSurvey = Survey::model()->findByPk($surveyId);
if (!$extraSurvey->getHasTokensTable() || $extraSurvey->getIsAnonymized()) {
\reloadAnyResponse\Urilities::setForcedAllowedSettings($surveyId, 'uniqueCodeAccess');
\reloadAnyResponse\Utilities::setForcedAllowedSettings($surveyId, 'uniqueCodeAccess');
}
$tokenSettings = $aQuestionAttributes['extraSurveyTokenUsage'];
switch ($tokenSettings) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment