From 3f587cfa11a6c260e958e2bd23b3184845dca17e Mon Sep 17 00:00:00 2001 From: Alexey Ch Date: Mon, 1 Feb 2021 14:19:41 +0500 Subject: [PATCH] =?UTF-8?q?=D0=9F=D0=BE=D0=B8=D1=81=D0=BA=20=D0=BD=D0=BE?= =?UTF-8?q?=D0=BC=D0=B5=D1=80=D0=B0=20=D0=B2=20=D1=82=D0=B5=D0=BB=D0=B5=20?= =?UTF-8?q?=D0=BA=D0=BE=D0=BC=D0=BC=D0=B5=D0=BD=D1=82=D0=B0=D1=80=D0=B8?= =?UTF-8?q?=D1=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Поиск номера не только в id и parent id комментария, но и в тексте и остальных полях. Иначе, к примеру, при поиске номера телефона, ничего не найти. --- .../tickets/processors/mgr/comment/getlist.class.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/components/tickets/processors/mgr/comment/getlist.class.php b/core/components/tickets/processors/mgr/comment/getlist.class.php index bf7f98d..4919827 100644 --- a/core/components/tickets/processors/mgr/comment/getlist.class.php +++ b/core/components/tickets/processors/mgr/comment/getlist.class.php @@ -53,6 +53,10 @@ public function prepareQueryBeforeCount(xPDOQuery $c) $c->where(array( 'TicketComment.id:=' => $query, 'OR:TicketComment.parent:=' => $query, + 'OR:TicketComment.text:LIKE' => '%' . $query . '%', + 'OR:TicketComment.raw:LIKE' => '%' . $query . '%', + 'OR:TicketComment.name:LIKE' => '%' . $query . '%', + 'OR:TicketComment.email:LIKE' => '%' . $query . '%', )); } else {