X-Git-Url: http://git.roojs.org/?p=Pman.Core;a=blobdiff_plain;f=DataObjects%2FCore_company.php;h=2a55369440745695f27dc9bae55cce4ccb78c902;hp=4768b93de56981958dfdedd73be8772876925f4d;hb=e23146506d2ade4e9263cb608f9e21f5da13020e;hpb=93b3bcbfe8b1b9b37219249fb69014eebca55c8d diff --git a/DataObjects/Core_company.php b/DataObjects/Core_company.php index 4768b93d..2a553694 100644 --- 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%' "); } + 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("