projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
45a332b
)
Fix #6628 - searching on notification history
author
Alan Knowles
<alan@roojs.com>
Fri, 5 Mar 2021 03:57:46 +0000
(11:57 +0800)
committer
Alan Knowles
<alan@roojs.com>
Fri, 5 Mar 2021 03:57:46 +0000
(11:57 +0800)
DataObjects/Core_notify.php
patch
|
blob
|
history
diff --git
a/DataObjects/Core_notify.php
b/DataObjects/Core_notify.php
index
2cc4a12
..
e90f61e
100644
(file)
--- 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)
{
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.
if (isset($q['ontable']) && !in_array($q['ontable'], array('Person', 'Events', 'core_watch'))) {
// this will only work on tables not joined to ours.