Skip to content

Commit

Permalink
Fixed issue #13154: "Resume Later" fails with "General error: 1364 Fi…
Browse files Browse the repository at this point in the history
…eld 'saved_thisstep' doesn't have a default value"
  • Loading branch information
lacrioque committed Jan 15, 2018
1 parent 68b5973 commit 30610e4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion application/libraries/Save.php
Expand Up @@ -148,7 +148,8 @@ function getSaveFormDatas($iSurveyId)
$aSaveForm['aCaptcha']['sImageUrl'] = Yii::app()->getController()->createUrl('/verification/image', array('sid'=>$iSurveyId));
}

$aSaveForm['sHiddenField'] = CHtml::hiddenField('savesubmit', 'save');
$aSaveForm['sHiddenField'] = CHtml::hiddenField('thisstep', $thisstep);
$aSaveForm['sHiddenField'] .= CHtml::hiddenField('savesubmit', 'save');

if ($clienttoken) {
$aSaveForm['sHiddenField'] .= CHtml::hiddenField('token', $clienttoken);
Expand Down

0 comments on commit 30610e4

Please sign in to comment.