Skip to content

Commit

Permalink
Dev: wipe out response sql session filter on survey activation to avo…
Browse files Browse the repository at this point in the history
…id any bug on responses grid.
  • Loading branch information
LouisGac committed Feb 2, 2017
1 parent 0cb3568 commit a716478
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion application/controllers/admin/surveyadmin.php
Expand Up @@ -628,6 +628,7 @@ public function activate($iSurveyID)

$iSurveyID = (int) $iSurveyID;

Yii::app()->user->setState('sql_'.$iSurveyID,''); // If user has set some filters for responses from statistics on a previous activation, it must be wiped out
$aData = array();
$aData['sidemenu']['state'] = false;
$aData['aSurveysettings'] = getSurveyInfo($iSurveyID);
Expand Down Expand Up @@ -1476,7 +1477,7 @@ function getUrlParamsJSON($iSurveyID)
$row['question'] = $oRow['title'];
$row['parameter'] = $oRow['parameter'];
$row['datas'] = $oRow;

$aData['rows'][] = $row;
$i++;
}
Expand Down

0 comments on commit a716478

Please sign in to comment.