projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cfe1a20
)
DataObjects/Person.php
author
Alan Knowles
<alan@akbkhome.com>
Mon, 28 Nov 2011 08:06:07 +0000
(16:06 +0800)
committer
Alan Knowles
<alan@akbkhome.com>
Mon, 28 Nov 2011 08:06:07 +0000
(16:06 +0800)
DataObjects/Person.php
patch
|
blob
|
history
diff --git
a/DataObjects/Person.php
b/DataObjects/Person.php
index
41f4972
..
98b6345
100644
(file)
--- a/
DataObjects/Person.php
+++ b/
DataObjects/Person.php
@@
-591,10
+591,10
@@
class Pman_Core_DataObjects_Person extends DB_DataObject
if (!empty($q['query']['search'])) {
$s = $this->escape($q['query']['search']);
$this->whereAdd("
-
Person
.name LIKE '%$s%' OR
-
Person
.email LIKE '%$s%' OR
-
Person
.role LIKE '%$s%' OR
-
Person
.remarks LIKE '%$s%'
+
$tn_p
.name LIKE '%$s%' OR
+
$tn_p
.email LIKE '%$s%' OR
+
$tn_p
.role LIKE '%$s%' OR
+
$tn_p
.remarks LIKE '%$s%'
");
}