6.0.0-beta1
7/19/25

[#9207] VCard field 'FN' set with value from configured 'alternative_name' field despite value in field 'lastname' exists.
Summary VCard field 'FN' set with value from configured 'alternative_name' field despite value in field 'lastname' exists.
Queue Turba
Queue Version 2.3.4
Type Bug
State Resolved
Priority 1. Low
Owners jan (at) horde (dot) org
Requester mail (at) sebastianbusch (dot) de
Created 08/30/2010 (5437 days ago)
Due
Updated 09/21/2010 (5415 days ago)
Assigned
Resolved 09/21/2010 (5415 days ago)
Github Issue Link
Github Pull Request
Milestone 2.3.5
Patch No

History
09/21/2010 09:24:36 PM Jan Schneider Assigned to Jan Schneider
State ⇒ Resolved
Milestone ⇒ 2.3.5
Patch ⇒ No
 
09/21/2010 09:24:09 PM CVS Commit Comment #3 Reply to this comment
Changes have been made in CVS for this ticket:

[jan] Correctly export FN vCard property if 'alternative_name' is set, but not
'name' (Bug #9207).
Fix charset conversion.
http://cvs.horde.org/diff.php/turba/docs/CHANGES?rt=horder1=1.181.2.254r2=1.181.2.255ty=u
http://cvs.horde.org/diff.php/turba/lib/Driver.php?rt=horder1=1.57.2.97r2=1.57.2.98ty=u
09/21/2010 09:05:55 PM CVS Commit Comment #2 Reply to this comment
Changes have been made in CVS for this ticket:

Add test case for bug #9207.
http://cvs.horde.org/diff.php/turba/lib/tests/tovcard.phpt?rt=horder1=1.1.2.7r2=1.1.2.8ty=u
08/30/2010 02:19:58 AM mail (at) sebastianbusch (dot) de Comment #1
Priority ⇒ 1. Low
Type ⇒ Bug
Summary ⇒ VCard field 'FN' set with value from configured 'alternative_name' field despite value in field 'lastname' exists.
Queue ⇒ Turba
Milestone ⇒
Patch ⇒ Yes
New Attachment: syncml_company.patch Download
State ⇒ Unconfirmed
Reply to this comment
In <horde>/turba/lib/Driver.php lines 1664 and following, horde checks 
the field configured in 'alternative_name' prior to checking existing 
value for key 'lastname'.

Using the standard configuration for 'alternative_name', the company 
name is put into the field 'FN' of the vcard. Within SyncEvolution and 
Synthesis Android app (possibly other clients as well) the 'FN' field 
takes precedence over other fields. Therefore the company name is set 
as contact name. This is what I have experienced an what has also been 
described in:
http://forum.synthesis.ch/showthread.php?t=2070

My proposed solution is to swap the first two 'if' blocks to have 
horde check for an existing lastname prior to using the 
alternative_name field. See attached patch.

Saved Queries