Skip to content

Commit

Permalink
Search Attachments is not Working #5286 (#5310)
Browse files Browse the repository at this point in the history
  • Loading branch information
xillibit authored and 810 committed Apr 17, 2017
1 parent 1d6480d commit 3648eda
Showing 1 changed file with 8 additions and 0 deletions.
Expand Up @@ -227,6 +227,14 @@ protected function getListQuery()
default:
$query->order('a.id ' . $direction);
}

$filter = $this->getState('filter.search');

if (!empty($filter))
{
$post = $db->Quote('%' . $db->escape($filter, true) . '%');
$query->where('(a.filename LIKE ' . $post . ')');
}

return $query;
}
Expand Down

0 comments on commit 3648eda

Please sign in to comment.