Skip to content

Commit

Permalink
Fixed issue #12492 Use of "text fields" as filter in "Participants" a…
Browse files Browse the repository at this point in the history
…nd "Answers"

Dev: Set the request type to post and simplified
  • Loading branch information
lacrioque committed Jul 20, 2017
1 parent de9199a commit 081d467
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions application/controllers/admin/tokens.php
Expand Up @@ -386,8 +386,9 @@ public function browse($iSurveyId, $limit = 50, $start = 0, $order = false, $sea

/// FOR GRID View
$model = TokenDynamic::model($iSurveyId);
if(isset($_GET['TokenDynamic'])) {
$model->setAttributes($_GET['TokenDynamic'],false);
$filterForm = Yii::app()->request->getPost('TokenDynamic', false);
if($filterForm ){
$model->setAttributes($filterForm ,false);
}

$aData['model'] = $model;
Expand Down
2 changes: 1 addition & 1 deletion application/views/admin/token/browse.php
Expand Up @@ -174,8 +174,8 @@ function checkMandatoryAttr(value, colname) {
array('class'=>'changePageSize form-control', 'style'=>'display: inline; width: auto'))),
'itemsCssClass' =>'table-striped',
'columns' => $model->attributesForGrid,

'ajaxUpdate'=>true,
'ajaxType'=>'POST',
'afterAjaxUpdate' => 'reinstallParticipantsFilterDatePicker'
));
?>
Expand Down

0 comments on commit 081d467

Please sign in to comment.