Skip to content

Commit

Permalink
Fixed issue #07025: "Resume later" in Token/Enable token-based respon…
Browse files Browse the repository at this point in the history
…se persistence don't have to show in forms

Dev: still unaccessible without javascript / just take the code from 1.92
  • Loading branch information
Shnoulle committed Dec 7, 2012
1 parent 3f6e18f commit 91333e3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions application/helpers/SurveyRuntimeHelper.php
Expand Up @@ -275,8 +275,10 @@ function run($surveyid,$args) {
{
// must do this here to process the POSTed values
$moveResult = LimeExpressionManager::JumpTo($_SESSION[$LEMsessid]['step'], false); // by jumping to current step, saves data so far

$cSave->showsaveform(); // generates a form and exits, awaiting input
if ($thissurvey['tokenanswerspersistence'] != 'Y' || !isset($surveyid) || !tableExists('tokens_'.$surveyid))
{
$cSave->showsaveform(); // generates a form and exits, awaiting input
}
}

if ($thissurvey['active'] == "Y" && isset($_POST['saveprompt']))
Expand Down
2 changes: 1 addition & 1 deletion application/helpers/replacements_helper.php
Expand Up @@ -462,7 +462,7 @@ function templatereplace($line, $replacements = array(), &$redata = array(), $de
$_saveall = '';
}
}
elseif (isset(Yii::app()->session['scid']) && (isset($move) && $move == "movelast"))
elseif (isset($_SESSION['survey_'.$surveyid]['scid']) && (isset($move) && $move == "movelast"))
{ //Already saved and on Submit Page, dont show Save So Far button
$_saveall = '';
}
Expand Down

0 comments on commit 91333e3

Please sign in to comment.