Skip to content
This repository has been archived by the owner on Apr 5, 2018. It is now read-only.

Commit

Permalink
Improved searching
Browse files Browse the repository at this point in the history
  • Loading branch information
Bob Olde Hampsink committed Dec 4, 2014
1 parent 3b5f80b commit a200b5c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion services/AuditLogService.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public function log($criteria)

// Search
if(!empty($criteria->search)) {
$condition .= 'origin like :search and ';
$condition .= '(`origin` like :search or `before` like :search or `after` like :search) and ';
$params[':search'] = '%' . addcslashes($criteria->search, '%_') . '%';
}

Expand Down

0 comments on commit a200b5c

Please sign in to comment.