Fix #6628 - searching on notification history
authorAlan Knowles <alan@roojs.com>
Fri, 5 Mar 2021 03:57:46 +0000 (11:57 +0800)
committerAlan Knowles <alan@roojs.com>
Fri, 5 Mar 2021 03:57:46 +0000 (11:57 +0800)
DataObjects/Core_notify.php

index 2cc4a12..e90f61e 100644 (file)
@@ -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.