[Tickets #8654] trimming comopsite fields
bugs at horde.org
bugs at horde.org
Tue Oct 20 16:28:28 UTC 2009
DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.
Ticket URL: http://bugs.horde.org/ticket/8654
------------------------------------------------------------------------------
Ticket | 8654
Created By | xk3 at mompl.org
Summary | trimming comopsite fields
Queue | Turba
Version | 2.3.2
Type | Enhancement
State | New
Priority | 1. Low
Milestone |
Patch |
Owners |
------------------------------------------------------------------------------
xk3 at mompl.org (2009-10-20 12:28) wrote:
a trim() is often not enough for a composite field, if some of the
fields it is composed from are empty.
I always patch in toDriverKeys() the trim() with a
preg_replace('/\s\s+/', ' ', ...). This avoids names such as
"Firstname__Lastname", if the middle name is empty.
More information about the bugs
mailing list