プロジェクト

全般

プロフィール

Vote #72151

完了

Can't filter for negative numeric custom fields

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

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

0%

予定工数:
category_id:
14
version_id:
54
issue_org_id:
11307
author_id:
37011
assigned_to_id:
1
comments:
3
status_id:
5
tracker_id:
1
plus1:
0
affected_version:
closed_on:
affected_version_id:
51
ステータス-->[Closed]

説明

Trying to filter issues for negative custom field integers (and possibly other integers) doesn't work due to the regex under the "when :integer" clause in @validate_query_filters@ in source:trunk/app/models/query.rb, which doesn't allow a leading sign.

I have it in 1.4.3, but I see that the issue is in trunk also, on line 177. I fixed it in my version by replacing the regex with:

/^[+-]?\d+$/

journals

--------------------------------------------------------------------------------
Fixed in r9908 for floats as well. Thanks for pointing this out.
--------------------------------------------------------------------------------
Merged in 1.4 and 2.0.
--------------------------------------------------------------------------------

Admin Redmine さんが約4年前に更新

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

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

いいね!0
いいね!0