[Tickets #955] NEW: Turba API: getContact composite fields not returned

bugs at bugs.horde.org bugs at bugs.horde.org
Wed Dec 8 12:00:57 PST 2004


DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.

Ticket URL: http://bugs.horde.org/ticket/?id=955
-----------------------------------------------------------------------
 Ticket     | 955
 Created By | rbreiddal at presinet.com
 Summary    | Turba API: getContact composite fields not returned
 Queue      | Turba
 Version    | HEAD
 State      | Unconfirmed
 Priority   | 2. Medium
 Type       | Bug
 Owners     | 
-----------------------------------------------------------------------


rbreiddal at presinet.com (2004-12-08 12:00) wrote:

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 )




More information about the bugs mailing list