Skip to content

Commit

Permalink
Merge pull request #27 from strorch/search_fix
Browse files Browse the repository at this point in the history
fixed bulk search by responsibles
  • Loading branch information
SilverFire committed Aug 2, 2019
2 parents 19b8cce + b788122 commit 785d7da
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
4 changes: 2 additions & 2 deletions src/grid/TicketGridView.php
Expand Up @@ -80,9 +80,9 @@ public function columns()
],
'responsible_id' => [
'class' => ClientColumn::class,
'idAttribute' => 'responsible_id',
'idAttribute' => 'responsibles',
'sortAttribute' => 'responsible',
'attribute' => 'responsible_id',
'attribute' => 'responsible',
'clientType' => ['admin', 'reseller', 'manager'],
'value' => function ($model) {
return Html::a($model['responsible'], ['/client/client/view', 'id' => $model->responsible_id]);
Expand Down
8 changes: 2 additions & 6 deletions src/views/ticket/_search.php
Expand Up @@ -55,13 +55,9 @@

<?php if (Yii::$app->user->can('support')) : ?>
<div class="col-md-4 col-sm-6 col-xs-12">
<?= $search->field('responsible_id')->widget(ClientCombo::class, [
<?= $search->field('responsible')->widget(ClientCombo::class, [
'clientType' => 'manager',
'pluginOptions' => [
'select2Options' => [
'multiple' => true,
],
],
'multiple' => true,
]); ?>
</div>
<div class="col-md-4 col-sm-6 col-xs-12">
Expand Down

0 comments on commit 785d7da

Please sign in to comment.