[Tickets #13393] Re: Tags of contacts don't get synched back

noreply at bugs.horde.org noreply at bugs.horde.org
Thu Jul 24 09:34:42 UTC 2014


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

Ticket URL: http://bugs.horde.org/ticket/13393
------------------------------------------------------------------------------
  Ticket             | 13393
  Updated By         | thomas at trethan.net
  Summary            | Tags of contacts don't get synched back
  Queue              | Synchronization
  Version            | Git master
  Type               | Bug
  State              | Unconfirmed
  Priority           | 2. Medium
  Milestone          |
  Patch              |
  Owners             |
------------------------------------------------------------------------------


thomas at trethan.net (2014-07-24 09:34) wrote:

Found out, that Turba only exports fields listet in the backend-map,  
where "__tags" is not listed for a mysql backend (see lib/Driver.php  
function tovCard()). When manually adding "__tags" to $attributes, it  
works. Either need to add "__tags" to the backend-map (question how?)  
or need to respect tags somehow in the tovcard-code.

My quick and dirty solution:
$attributes[] = '__tags';

Found another problem in turba/lib/Driver.php function tovCard(), when  
reading "__tags" and trying to set the vcard-attribute CATEGORIES,  
$val holds the tags as concattenated string (as retrieved by the  
Turba_Tagger in turba/lib/Object.php), but needs to be an array:

$vcard->setAttribute('CATEGORIES', null, array(), true, explode(', ', $val));





More information about the bugs mailing list