6.0.0-beta6
4/10/26

[#6568] When using a combined name-field with storage, toHash will use fieldnames instead of fieldvalues
Summary When using a combined name-field with storage, toHash will use fieldnames instead of fieldvalues
Queue Turba
Queue Version HEAD
Type Bug
State Resolved
Priority 1. Low
Owners jan (at) horde (dot) org
Requester horde (at) ssn (dot) at
Created 4/4/08 (6580 days ago)
Due
Updated 4/4/08 (6580 days ago)
Assigned
Resolved 4/4/08 (6580 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
04/04/2008 10:10:20 PM Jan Schneider Comment #2
Assigned to Jan Schneider
State ⇒ Resolved
Reply to this comment
I took the opportunity and cleaned up the name processing in toHash() 
a bit, including your fix, thanks.
04/04/2008 07:14:00 PM horde (at) ssn (dot) at Comment #1
Priority ⇒ 1. Low
New Attachment: turba_GRL_NameCombined_Driver.php.diff Download
Patch ⇒ No
Milestone ⇒
Queue ⇒ Turba
Summary ⇒ When using a combined name-field with storage, toHash will use fieldnames instead of fieldvalues
Type ⇒ Bug
State ⇒ Unconfirmed
Reply to this comment
turba/lib/Driver.php has a little bug in toHash().

Patch attached...



When using a name-field which is combined and saved to the underlying storage

'name' => array('fields' => array('jobtitle', 'firstname', 'lastname'),

                         'format' => '%s %s %s',

                         'attribute' => 'cn'),

the toHash-Function will set the field-value to the NAMES of the 
fields instead of the VALUES.



Patch attached.



regards

Lukas


Saved Queries