Skip to content

Commit

Permalink
Add subject and messgae search
Browse files Browse the repository at this point in the history
  • Loading branch information
tafid committed Jan 18, 2016
1 parent f2c962a commit 5a9e949
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/models/Thread.php
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ public function attributes()
'message', // 'answer_message',
'answers',
'is_private',
'anytext_like',

'anonym_name',
'anonym_email',
Expand Down Expand Up @@ -175,6 +176,7 @@ public function attributeLabels()
'create_time' => Yii::t('app', 'Created'),
'a_reply_time' => Yii::t('app', 'a_reply_time'),
'file' => Yii::t('app', 'Files'),
'anytext_like' => Yii::t('app', 'Subject or message'),
]);
}

Expand Down
2 changes: 1 addition & 1 deletion src/views/ticket/_search.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
?>

<div class="col-md-4">
<?= $search->field('subject') ?>
<?= $search->field('anytext_like') ?>

<div class="form-group">
<?= Html::label(Yii::t('app', 'Date'))?>
Expand Down

0 comments on commit 5a9e949

Please sign in to comment.