Vote #69860
完了Strip whitespace from integer custom field
0%
説明
In my custom field, which is an integer, if I enter "123 " it complains.
Can this be modified to strip trailing, and maybe leading?, white space?
I haven't testing the fields, like float, but suspect theymight have this issue as well.
(using 1.0.4 waiting for 1.2.0)
journals
In my opinion this is more an feature request than an defect because the field work like expected.
--------------------------------------------------------------------------------
I wrote a patch to fix this issue.
Float custom fields allow leading and trailing spaces. Integer custom fields should also behave in the same way for consistency.
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
Committed.
--------------------------------------------------------------------------------
Committed to the stable branches.
--------------------------------------------------------------------------------
related_issues
relates,New,9588,Text fields used for data entry should trim whitespace.