mirror of
https://github.com/Mibew/design.git
synced 2025-01-22 18:10:33 +03:00
Fix bug with history for search in messages
This commit is contained in:
parent
545bb19896
commit
d14a778831
@ -58,9 +58,11 @@ if ($query !== false) {
|
||||
$searchConditions[] = "({chatmessage}.tmessage LIKE :query" .
|
||||
($searchInSystemMessages?'':" AND ({chatmessage}.ikind = :kind_user OR {chatmessage}.ikind = :kind_agent)") .
|
||||
")";
|
||||
if (! $searchInSystemMessages) {
|
||||
$values[':kind_user'] = Thread::KIND_USER;
|
||||
$values[':kind_agent'] = Thread::KIND_AGENT;
|
||||
}
|
||||
}
|
||||
if ($searchType == 'operator' || $searchType == 'all') {
|
||||
$searchConditions[] = "({chatthread}.agentName LIKE :query)";
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user