[Tickets #6568] When using a combined name-field with storage, toHash will use fieldnames instead of fieldvalues

bugs at horde.org bugs at horde.org
Fri Apr 4 19:14:01 UTC 2008


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

Ticket URL: http://bugs.horde.org/ticket/6568
-----------------------------------------------------------------------
 Ticket             | 6568
 Created By         | horde at ssn.at
 Summary            | When using a combined name-field with storage, toHash
will use
                    | fieldnames instead of fieldvalues
 Queue              | Turba
 Version            | HEAD
 Type               | Bug
 State              | Unconfirmed
 Priority           | 1. Low
 Milestone          |
 Patch              |
 Owners             |
+New Attachment     | turba_GRL_NameCombined_Driver.php.diff
-----------------------------------------------------------------------


horde at ssn.at (2008-04-04 15:14) wrote:

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





More information about the bugs mailing list