Project

General

Profile

Actions

Defect #8317

closed

Strip whitespace from integer custom field

Added by Gerry Hawkins almost 13 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Custom fields
Target version:
Start date:
2011-05-06
Due date:
% Done:

0%

Estimated time:
Resolution:
Fixed
Affected version:

Description

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)


Files

8317-strip-spaces-int-cf.diff (1.34 KB) 8317-strip-spaces-int-cf.diff Go MAEDA, 2017-04-15 05:45

Related issues

Related to Redmine - Defect #9588: Text fields used for data entry should trim whitespace.New2011-11-16

Actions
Actions #1

Updated by Thomas Kohler about 11 years ago

In my opinion this is more an feature request than an defect because the field work like expected.

Actions #2

Updated by Go MAEDA about 7 years ago

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.

Actions #3

Updated by Go MAEDA about 7 years ago

  • Related to Defect #9588: Text fields used for data entry should trim whitespace. added
Actions #4

Updated by Go MAEDA over 5 years ago

  • Target version set to 4.0.0
Actions #5

Updated by Go MAEDA over 5 years ago

  • Target version changed from 4.0.0 to 4.1.0
Actions #6

Updated by Go MAEDA over 5 years ago

  • Subject changed from in integer custom fields white space is not stripped off the end to Strip whitespace from integer custom field
  • Status changed from New to Resolved
  • Assignee set to Go MAEDA
  • Priority changed from Low to Normal
  • Target version changed from 4.1.0 to 3.3.9
  • Resolution set to Fixed

Committed.

Actions #7

Updated by Go MAEDA over 5 years ago

  • Status changed from Resolved to Closed

Committed to the stable branches.

Actions

Also available in: Atom PDF