Skip to content
This repository has been archived by the owner on Jun 16, 2019. It is now read-only.

Commit

Permalink
Add optional param 'comment' to smart_scripts search
Browse files Browse the repository at this point in the history
  • Loading branch information
FrancescoBorzi committed Jun 8, 2015
1 parent 38b788d commit 4b5828b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/Http/routes.php
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,9 @@
if (isset($_GET['source_type']) && $_GET['source_type'] != "")
$query->where('source_type', 'LIKE', '%'. $_GET['source_type'] .'%');

if (isset($_GET['comment']) && $_GET['comment'] != "")
$query->where('comment', 'LIKE', '%'. $_GET['comment'] .'%');

$results = $query->orderBy('entryorguid')->groupBy('entryorguid', 'source_type')->get();

return Response::json($results);
Expand Down

0 comments on commit 4b5828b

Please sign in to comment.