diff --git a/application/helpers/frontend_helper.php b/application/helpers/frontend_helper.php index d3d7565b978..86f9f92e182 100644 --- a/application/helpers/frontend_helper.php +++ b/application/helpers/frontend_helper.php @@ -125,6 +125,7 @@ function loadanswers() //Only make session variables for those in insertarray[] if (in_array($column, $_SESSION['survey_'.$surveyid]['insertarray']) && isset($_SESSION['survey_'.$surveyid]['fieldmap'][$column])) { + if (($_SESSION['survey_'.$surveyid]['fieldmap'][$column]['type'] == 'N' || $_SESSION['survey_'.$surveyid]['fieldmap'][$column]['type'] == 'K' || $_SESSION['survey_'.$surveyid]['fieldmap'][$column]['type'] == 'D') && $value == null) @@ -139,6 +140,10 @@ function loadanswers() { $_SESSION['survey_'.$surveyid][$column]=$value; } + if(isset($token) && !empty($token)) + { + $_SESSION['survey_'.$surveyid][$column]=$value; + } } // if (in_array( } // else } // foreach