プロジェクト

全般

プロフィール

Vote #74969

完了

Wrong validation when updating integer custom field with spaces

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

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

0%

予定工数:
category_id:
14
version_id:
79
issue_org_id:
16169
author_id:
88801
assigned_to_id:
1
comments:
2
status_id:
5
tracker_id:
1
plus1:
0
affected_version:
closed_on:
affected_version_id:
ステータス-->[Closed]

説明

Our project custom field is an integer. When we update its value, we get an error message if we enter letters (that's fine) but we can enter and save spaces.
A string composed of spaces should not be authorized.

When the custom_value table contains wrong spaces values, it breaks some requests on custom fields because the current requests cast the values to decimals (like in the sql_for_field method in the query class).

Environment:
Redmine version 2.5.0.devel.12927
Ruby version 1.9.3-p484 (2013-11-22) [x86_64-darwin13.0.0]
Rails version 3.2.17
Database adapter PostgreSQL 9.3


journals

Fixed in r12938, thanks for pointing this out.
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------

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

いいね!0
いいね!0