Skip to content
Snippets Groups Projects
Unverified Commit 615277eb authored by Christoph Wurst's avatar Christoph Wurst
Browse files

Add search by subject

parent 5c4faee6
No related branches found
No related tags found
No related merge requests found
......@@ -322,6 +322,16 @@ class MessageMapper extends QBMapper {
);
}
if ($query->getSubject() !== null) {
$select->andWhere(
$qb->expr()->iLike(
'subject',
$qb->createNamedParameter('%' . $query->getSubject() . '%', IQueryBuilder::PARAM_STR),
IQueryBuilder::PARAM_STR
)
);
}
if ($query->getCursor() !== null) {
$select->andWhere(
$qb->expr()->lt('sent_at', $qb->createNamedParameter($query->getCursor(), IQueryBuilder::PARAM_INT))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment