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