Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed issue: Return from Quota resets survey completely.
- Loading branch information
Showing
3 changed files
with
9 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1884,8 +1884,8 @@ function checkCompletedQuota($surveyid, $return = false) | |
$thissurvey['aQuotas'] = array(); | ||
$thissurvey['aQuotas']['sMessage'] = $sMessage; | ||
$thissurvey['aQuotas']['bShowNavigator'] = !$closeSurvey; | ||
$thissurvey['aQuotas']['sQuotaStep'] = isset($_SESSION['survey_'.$surveyid]['step']) ? $_SESSION['survey_'.$surveyid]['step'] : 0; // Surely not needed | ||
$thissurvey['aQuotas']['sClientToken'] = $sClientToken; | ||
$thissurvey['aQuotas']['sQuotaStep'] = 'returnfromquota'; | ||
$thissurvey['aQuotas']['aPostedQuotaFields'] = isset($aPostedQuotaFields) ? $aPostedQuotaFields : ''; | ||
$thissurvey['aQuotas']['sPluginBlocks'] = implode("\n", $blocks); | ||
$thissurvey['aQuotas']['sUrlDescription'] = $sUrlDescription; | ||
|
@@ -1894,8 +1894,8 @@ function checkCompletedQuota($surveyid, $return = false) | |
|
||
|
||
$thissurvey['aQuotas']['hiddeninputs'] = '<input type="hidden" name="sid" value="'.$surveyid.'" /> | ||
<input type="hidden" name="token" value="'.$thissurvey['aQuotas']['sClientToken'].'" /> | ||
<input type="hidden" name="thisstep" value="'.$thissurvey['aQuotas']['sQuotaStep'].'" />'; | ||
<input type="hidden" name="token" value="'.$thissurvey['aQuotas']['sClientToken'].'" /> | ||
<input type="hidden" name="thisstep" value="'.(isset($_SESSION['survey_'.$surveyid]['step']) ? $_SESSION['survey_'.$surveyid]['step'] : 0).'" />'; | ||
|
||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
Shnoulle
Collaborator
|
||
|
||
if (!empty($thissurvey['aQuotas']['aPostedQuotaFields'])){ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
doesn't work in question by question mode. I guess "0" should be replaced by something else.