6.0.0-beta1
8/11/25

[#8654] trimming composite fields
Summary trimming composite fields
Queue Turba
Queue Version 2.3.2
Type Enhancement
State Resolved
Priority 1. Low
Owners jan (at) horde (dot) org
Requester xk3 (at) mompl (dot) org
Created 10/20/2009 (5774 days ago)
Due
Updated 01/13/2010 (5689 days ago)
Assigned
Resolved 10/20/2009 (5774 days ago)
Milestone 2.3.3
Patch No

History
10/20/2009 10:10:07 PM Jan Schneider Assigned to Jan Schneider
Summary ⇒ trimming composite fields
State ⇒ Resolved
Milestone ⇒ 2.3.3
 
10/20/2009 04:28:28 PM xk3 (at) mompl (dot) org Comment #1
Priority ⇒ 1. Low
Type ⇒ Enhancement
Summary ⇒ trimming comopsite fields
Queue ⇒ Turba
Milestone ⇒
Patch ⇒ No
State ⇒ New
Reply to this comment
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.

Saved Queries