projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
93b3bcb
)
DataObjects/Core_company.php
author
Alan Knowles
<alan@roojs.com>
Thu, 25 Oct 2018 04:59:48 +0000
(12:59 +0800)
committer
Alan Knowles
<alan@roojs.com>
Thu, 25 Oct 2018 04:59:48 +0000
(12:59 +0800)
DataObjects/Core_company.php
patch
|
blob
|
history
diff --git
a/DataObjects/Core_company.php
b/DataObjects/Core_company.php
index
4768b93
..
2a55369
100644
(file)
--- a/
DataObjects/Core_company.php
+++ b/
DataObjects/Core_company.php
@@
-110,6
+110,12
@@
class Pman_Core_DataObjects_Core_Company extends DB_DataObject
{$tn}.name LIKE '%$s%'
");
}
{$tn}.name LIKE '%$s%'
");
}
+ if(!empty($q['search']['name'])){
+ $s = $this->escape($q['search']['name']);
+ $this->whereAdd("
+ {$tn}.name LIKE '%$s%'
+ ");
+ }
if(!empty($q['search']['name_starts'])){
$s = $this->escape($q['search']['name_starts']);
$this->whereAdd("
if(!empty($q['search']['name_starts'])){
$s = $this->escape($q['search']['name_starts']);
$this->whereAdd("