プロジェクト

全般

プロフィール

Vote #69860

完了

Strip whitespace from integer custom field

Admin Redmine さんが3年以上前に追加. 3年以上前に更新.

ステータス:
Closed
優先度:
通常
担当者:
-
カテゴリ:
Custom fields_14
対象バージョン:
開始日:
2011/05/06
期日:
進捗率:

0%

予定工数:
category_id:
14
version_id:
142
issue_org_id:
8317
author_id:
15769
assigned_to_id:
332
comments:
7
status_id:
5
tracker_id:
1
plus1:
0
affected_version:
closed_on:
affected_version_id:
ステータス-->[Closed]

説明

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.

Admin Redmine さんが3年以上前に更新

  • カテゴリCustom fields_14 にセット
  • 対象バージョン3.3.9_142 にセット

他の形式にエクスポート: Atom PDF

いいね!0
いいね!0