6.0.0-beta1
7/26/25

[#955] Turba API: getContact composite fields not returned
Summary Turba API: getContact composite fields not returned
Queue Turba
Queue Version HEAD
Type Bug
State Resolved
Priority 2. Medium
Owners Horde Developers (at)
Requester rbreiddal (at) presinet (dot) com
Created 12/08/2004 (7535 days ago)
Due
Updated 12/13/2004 (7530 days ago)
Assigned 12/08/2004 (7535 days ago)
Resolved 12/12/2004 (7531 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
12/13/2004 11:35:31 PM Chuck Hagenbuch Comment #4 Reply to this comment
excellent point - done.
12/13/2004 10:45:02 PM rbreiddal (at) presinet (dot) com Comment #3 Reply to this comment
Thanks a lot Chuck - while you have this fresh in your mind, it might 
be worthwhile to update getContacts with a similar chunk of code :)
12/12/2004 05:50:48 AM Chuck Hagenbuch Comment #2
State ⇒ Resolved
Reply to this comment
Fixed in CVS.
12/08/2004 08:24:39 PM Jan Schneider Assigned to Horde DevelopersHorde Developers
State ⇒ Assigned
 
12/08/2004 08:00:56 PM rbreiddal (at) presinet (dot) com Comment #1
State ⇒ Unconfirmed
Priority ⇒ 2. Medium
Type ⇒ Bug
Summary ⇒ Turba API: getContact composite fields not returned
Queue ⇒ Turba
Reply to this comment
I have the following defined in config/sources.php:



...

$cfgSources['clients_sql'] = array(

...

     'map' => array(

          'name' => array('fields' => array('field1', field2'),

          'format' => '%s - %s'),

     'field1' => 'field1',

     'field2' => 'field2',

     ...

);



When I execute the following code:



$args = array('source' => 'clients_sql',

             'objectId' => '<valid objectId>');

$client = $registry->call('clients/getContact',$args);

print_r($client);



I get:

Array ( [__key] => <valid objectId>

        [field1] => foo

        [field2] => bar

        ...

        [__type] => Object

        [__owner] => rbreiddal )



My understanding is that I should have this instead:

Array ( [__key] => <valid objectId>

        [name] => foo - bar

        [field1] => foo

        [field2] => bar

        ...

        [__type] => Object

        [__owner] => rbreiddal )

Saved Queries