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 |
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
State ⇒ Feedback
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?
Priority ⇒ 1. Low
Type ⇒ Bug
Summary ⇒ turba/lib/Driver: guessing first and last name
Queue ⇒ Turba
State ⇒ Unconfirmed
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