[turba] API Search Patch

Chuck Hagenbuch chuck at horde.org
Thu Oct 28 20:25:51 PDT 2004


Quoting mbydalek at mobilemini.com:

> Just to make sure I'm not a moron or anything, this was my code for the
> registry call:
> $args = array('names' => array($vars->get('user_email')),
>               'fields' => array('email'));
> $details = $registry->call('clients/searchClients', $args);

No, fields is expected to be indexed by source key, so that you can specify
different lists of fields for each source.

> What was happening though was that the 'fields' was being completely
> ignored.  Take a look at the patch and see if what I've done makes sense as
> there can never be any $fields[$source] (as far as I can tell) unless I am
> just doing this whole thing wrong.

See above, and look at how IMP calls this function.

-chuck

-- 
"But she goes not abroad in search of monsters to destroy." - John 
Quincy Adams


More information about the turba mailing list