Skip to content

Commit

Permalink
fixed search by watchers
Browse files Browse the repository at this point in the history
wix search with watchers
  • Loading branch information
hiqsol committed May 31, 2018
2 parents 44c0942 + 4183538 commit 6b69c8d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion src/models/Thread.php
Expand Up @@ -99,7 +99,9 @@ public function attributes()
'topics',
'topic',
'watchers',
'watcher_ids',
'watcher',
'watcher_id',
'add_tag_ids',
'file_ids',
'file',
Expand Down Expand Up @@ -150,7 +152,7 @@ public function rules()
'message',
'topics', 'state', 'priority',
'responsible', 'recipient_id',
'watchers', 'add_watchers', 'del_watchers',
'watchers', 'add_watchers', 'del_watchers', 'watcher_ids',
'is_private',
'file_ids',
'spent', 'spent_hours',
Expand Down Expand Up @@ -191,6 +193,7 @@ public function attributeLabels()
'file' => Yii::t('hipanel:ticket', 'Files'),
'lastanswer' => Yii::t('hipanel:ticket', 'Last answer'),
'author_seller' => Yii::t('hipanel:ticket', 'Seller'),
'watcher_ids' => Yii::t('hipanel:ticket', 'Watchers'),
]);
}

Expand Down
2 changes: 1 addition & 1 deletion src/views/ticket/_search.php
Expand Up @@ -67,7 +67,7 @@
]) ?>
</div>
<div class="col-md-4 col-sm-6 col-xs-12">
<?php echo $search->field('watchers')->widget(ClientCombo::class, [
<?php echo $search->field('watcher_ids')->widget(ClientCombo::class, [
'clientType' => ['manager', 'admin', 'owner'],
'hasId' => true,
'pluginOptions' => [
Expand Down

0 comments on commit 6b69c8d

Please sign in to comment.