Vote #72151
完了Can't filter for negative numeric custom fields
0%
説明
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.
--------------------------------------------------------------------------------