enable search in extra colums, as it was broken since get_class() returns addressbook_sql for Addresses stored in SQL instead of socontacts_sql

This commit is contained in:
Klaus Leithoff 2009-09-23 10:47:13 +00:00
parent bbe301095e
commit 20da79db8a

View File

@ -602,7 +602,8 @@ class addressbook_so
$cols = $this->account_cols_to_search; $cols = $this->account_cols_to_search;
} }
// search the customfields only if some exist, but only for sql! // search the customfields only if some exist, but only for sql!
if (get_class($backend) == 'socontacts_sql' && $this->customfields) $classBackend = get_class($backend);
if (($classBackend == 'socontacts_sql' || $classBackend == 'addressbook_sql') && $this->customfields)
{ {
$cols[] = $this->extra_value; $cols[] = $this->extra_value;
} }