From: Alan Knowles Date: Thu, 25 Oct 2018 04:59:48 +0000 (+0800) Subject: DataObjects/Core_company.php X-Git-Url: http://git.roojs.org/?p=Pman.Core;a=commitdiff_plain;h=e23146506d2ade4e9263cb608f9e21f5da13020e DataObjects/Core_company.php --- 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("