Project

General

Profile

Actions

Defect #11307

closed

Can't filter for negative numeric custom fields

Added by Brian Crowell almost 12 years ago. Updated almost 12 years ago.

Status:
Closed
Priority:
Normal
Category:
Custom fields
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Fixed
Affected version:

Description

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+$/
Actions

Also available in: Atom PDF