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 |
be worthwhile to update getContacts with a similar chunk of code :)
State ⇒ Resolved
State ⇒ Assigned
State ⇒ Unconfirmed
Priority ⇒ 2. Medium
Type ⇒ Bug
Summary ⇒ Turba API: getContact composite fields not returned
Queue ⇒ Turba
...
$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 )