projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a863855
)
DataObjects/Companies.php
author
Alan Knowles
<alan@roojs.com>
Tue, 21 Apr 2015 03:39:06 +0000
(11:39 +0800)
committer
Alan Knowles
<alan@roojs.com>
Tue, 21 Apr 2015 03:39:06 +0000
(11:39 +0800)
DataObjects/Companies.php
patch
|
blob
|
history
diff --git
a/DataObjects/Companies.php
b/DataObjects/Companies.php
index
f981f31
..
d0340be
100644
(file)
--- a/
DataObjects/Companies.php
+++ b/
DataObjects/Companies.php
@@
-105,7
+105,12
@@
class Pman_Core_DataObjects_Companies extends DB_DataObject
{$tn}.name LIKE '%$s%'
");
}
-
+ if(!empty($q['search']['name_starts'])){
+ $s = $this->escape($q['search']['name']);
+ $this->whereAdd("
+ {$tn}.name LIKE '$s%'
+ ");
+ }
}
function toEventString() {