Skip to content

Commit

Permalink
14042: Group filter on Survey list page to show only own survey groups
Browse files Browse the repository at this point in the history
  • Loading branch information
dominikvitt committed Sep 13, 2018
1 parent c900d97 commit 16f6eb8
Showing 1 changed file with 3 additions and 3 deletions.
Expand Up @@ -51,9 +51,9 @@
<?php echo $form->label($this->model, 'group', array('label'=>gT('Group:'),'class'=>'control-label')); ?>
<select name="gsid" id='Survey_gsid' class="form-control">
<option value=""><?php eT('(Any group)');?></option>
<?php foreach( SurveysGroups::model()->findAll() as $group): ?>
<option value="<?php echo $group->gsid;?>" <?php if( $group->gsid == $this->model->gsid){echo 'selected';} ?>>
<?php echo flattenText($group->title);?>
<?php foreach( SurveysGroups::getSurveyGroupsList() as $gsid=>$group_title): ?>
<option value="<?php echo $gsid;?>" <?php if( $gsid == $this->model->gsid){echo 'selected';} ?>>
<?php echo flattenText($group_title);?>
</option>
<?php endforeach?>
</select>
Expand Down

0 comments on commit 16f6eb8

Please sign in to comment.