function applyFilters($q, $au)
{
+
+ $this->selectAdd("i18n_translate('c' , Companies.country, 'en') as country_display_name ");
+
$tn = $this->tableName();
//DB_DataObject::debugLevel(1);
$x = DB_DataObject::factory('Companies');
) as comptype_display_name
");
- if(!empty($q['query']['name'])){
- $s = $this->escape($q['query']['name']);
+ 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("
+ {$tn}.name LIKE '$s%'
+ ");
+ }
}
function toEventString() {