6.0.0-beta1
10/17/25

[#4769] turba/lib/Driver: guessing first and last name
Summary turba/lib/Driver: guessing first and last name
Queue Turba
Queue Version HEAD
Type Bug
State Not A Bug
Priority 1. Low
Owners
Requester patrick.abiven (at) apitech (dot) fr
Created 12/12/2006 (6884 days ago)
Due
Updated 12/12/2006 (6884 days ago)
Assigned 12/12/2006 (6884 days ago)
Resolved 12/12/2006 (6884 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
12/12/2006 05:25:19 PM Michael Rubinsky State ⇒ Not A Bug
 
12/12/2006 05:16:40 PM patrick (dot) abiven (at) apitech (dot) fr Comment #4 Reply to this comment
Hello

You are right. My issue is that, at this point, I have an incorrect 
lastname (splitted from the fullname after the last blank). And I was 
thinking of setting the correct lastname at this point of the code. I 
will look after the correct way to deal with that.

Thanks for your quick answer.

Patrick

[Show Quoted Text - 12 lines]
12/12/2006 05:07:56 PM patrick (dot) abiven (at) apitech (dot) fr Comment #3 Reply to this comment

[Show Quoted Text - 12 lines]
12/12/2006 04:46:34 PM Michael Rubinsky Comment #2
State ⇒ Feedback
Reply to this comment
This was changed because that function is called statically, so you 
can't use the $this reference...



Testing it on my server, it seems to work as expected:  I have no 
'lastname' defined in the source, so the code tries to guess and adds 
the firstname and lastname attributes to the hash array.



I don't have any sources set up with explicit first/last name fields 
at the moment so I can't test that.



Can you provide a dump of the contents of $hash both before and after 
that code block?
12/12/2006 12:11:38 PM patrick (dot) abiven (at) apitech (dot) fr Comment #1
Priority ⇒ 1. Low
Type ⇒ Bug
Summary ⇒ turba/lib/Driver: guessing first and last name
Queue ⇒ Turba
State ⇒ Unconfirmed
Reply to this comment
Hello

SyncML uses the tovCard () function from turba/lib/Driver.php.

In version CVS 1.117 line 772 has been modified:

- if (!isset($this->map['lastname'])) {   // 1.116

+ if (!isset($hash['lastname'])) {           // 1.117



After this modification, the SyncML synchronization process is 
incorrect about firstname and lastname attributes.

Regards

Patrick




Saved Queries