Fix org view to use extended search abilities

This commit is contained in:
Nathan Gray 2010-06-07 18:40:25 +00:00
parent 015245d235
commit e56d9e9503

View File

@ -671,11 +671,19 @@ class addressbook_so
{
$search = $param['search'];
$param['search'] = array();
if($this->somain instanceof addressbook_sql)
{
// Keep the string, let the parent deal with it
$param['search'] = $search;
}
else
{
foreach($this->columns_to_search as $col)
{
if ($col != 'contact_value') $param['search'][$col] = $search; // we dont search the customfields
}
}
}
if (is_array($param['search']) && count($param['search']))
{
$param['search'] = $this->data2db($param['search']);