[turba] Empty searches

Alexander Tamm alex at hanken.fi
Tue Aug 23 04:15:53 PDT 2005


Michael Rubinsky wrote:
> Can you provide the appropriate $cfgSources entry? What fields are you 
> searching on, what steps to reproduce the problem?

Both name and e-mail.
Steps to reproduce:
1) Add a new entry:
         Name: Albert Einstein
         E-mail: albert.einstein at example.com
         Alias: Al

2) Search for Name matching 'a', 'al', 'A', 'Al', '*a*' or 'Albert
Einstein'. No results

3) Search for E-mail matching 'a', 'al', 'A', 'Al', '*a*' or
'albert.einstein'. No results

Regards,
Alex


from sources.php:

$cfgSources['localsql'] = array(
    'title' => _("My Addressbook"),
    'type' => 'sql',
    // The default connection details are pulled from the Horde-wide
    // SQL connection configuration.
    //
    // The old example illustrates how to use an alternate database
    // configuration.
    //
    // New Example:
    'params' => array_merge($conf['sql'], array('table' =>
'turba_objects')),

    // Old Example:
    // 'params' => array(
    //     'phptype' => 'mysql',
    //     'hostspec' => 'localhost',
    //     'username' => 'horde',
    //     'password' => '*****',
    //     'database' => 'horde',
    //     'table' => 'turba_objects',
    //     'charset' => 'iso-8859-1'
    // ),
    'map' => array(
        '__key' => 'object_id',
        '__owner' => 'owner_id',
        '__type' => 'object_type',
        '__members' => 'object_members',
        '__uid' => 'object_uid',
        'name' => 'object_name',
        'email' => 'object_email',
        'alias' => 'object_alias',
        'homeAddress' => 'object_homeaddress',
        'workAddress' => 'object_workaddress',
        'homePhone' => 'object_homephone',
        'workPhone' => 'object_workphone',
        'cellPhone' => 'object_cellphone',
        'fax' => 'object_fax',
        'title' => 'object_title',
        'company' => 'object_company',
        'notes' => 'object_notes',
        'pgpPublicKey' => 'object_pgppublickey',
        'smimePublicKey' => 'object_smimepublickey',
        'freebusyUrl' => 'object_freebusyurl'
    ),
    'search' => array(
        'name',
        'email'
    ),
    'strict' => array(
        'object_id',
        'owner_id',
        'object_type',
    ),
    'public' => false,
    'readonly' => false,
    'admin' => array(),
    'export' => true
);


More information about the turba mailing list