Skip to content

Commit

Permalink
Merge pull request vaibhavpandeyvpz#6 from felixble/search-custom-data
Browse files Browse the repository at this point in the history
Search for reports containing the query in the custom data section
  • Loading branch information
vaibhavpandeyvpz authored Jan 19, 2017
2 parents 6379176 + ce2d417 commit 39c1dd0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions classes/Http/Controllers/SearchController.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ public function query($query)
->from('reports', 'R')
->leftJoin('R', 'applications', 'A', 'A.id = R.application_id')
->where($qb->expr()->like('R.stack_trace', ':query'))
->orWhere($qb->expr()->like('R.custom_data', ':query'))
->orWhere($qb->expr()->like('A.title', ':query'))
->orderBy('R.created_at', 'DESC');
/** @var $group \Doctrine\DBAL\Query\QueryBuilder */
Expand Down

0 comments on commit 39c1dd0

Please sign in to comment.