From 229a87f9306cb345fd0cf05c3ea6c5a91487b2ec Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Fri, 5 Mar 2021 11:57:46 +0800 Subject: [PATCH] Fix #6628 - searching on notification history --- DataObjects/Core_notify.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/DataObjects/Core_notify.php b/DataObjects/Core_notify.php index 2cc4a129..e90f61e0 100644 --- a/DataObjects/Core_notify.php +++ b/DataObjects/Core_notify.php @@ -237,6 +237,11 @@ class Pman_Core_DataObjects_Core_notify extends DB_DataObject function applyFilters($q, $au, $roo) { + + if (!empty($q['search']['contains'])) { + $this->whereAdd("join_event_id_id.remarks LIKE '%".$this->escape($q['search']['contains']) ."%'"); + + } if (isset($q['ontable']) && !in_array($q['ontable'], array('Person', 'Events', 'core_watch'))) { // this will only work on tables not joined to ours. -- 2.39.2