Project

General

Profile

Actions

Defect #5778

closed

Defect in the filters (custom field) from the list of issue

Added by Jose Luis Muñoz Suarez over 14 years ago. Updated about 13 years ago.

Status:
Closed
Priority:
Normal
Category:
Custom fields
Target version:
-
Start date:
2010-06-28
Due date:
% Done:

0%

Estimated time:
Resolution:
Fixed
Affected version:

Description

When you add a numeric custom field as a filter on issues list the "select" of possible operators is not correct because it assumes that the filter is a string.


Files

custom_field_filter.patch (2.46 KB) custom_field_filter.patch Yuki Kita, 2010-07-03 00:01

Related issues

Related to Redmine - Feature #3488: Is it possible to set the Custom Field of the project as used in filter, Searchable and used in sort the project?New2009-06-12

Actions
Related to Redmine - Feature #1139: Being able to sort the issue list by custom fieldsClosedJean-Philippe Lang2008-04-29

Actions
Related to Redmine - Defect #5726: Cannot sort issues on custom fieldsClosedMuntek Singh2010-06-22

Actions
Related to Redmine - Defect #2755: Failing test after r2257 with MySQL 4.1.20: "test_sort_by_float_custom_field_asc(QueryTest)"Closed2009-02-15

Actions
Actions #1

Updated by Jean-Baptiste Barth over 14 years ago

  • Category set to Custom fields
  • Status changed from New to 7
  • Assignee set to Jean-Baptiste Barth

Confirmed, thank you for reporting.
I'll work on a patch with some tests.

Actions #2

Updated by Yuki Kita over 14 years ago

Here is the patch.
This issue seems to be the duplicate of #5726.
So the patch also fixes #5726.

Actions #3

Updated by Jean-Baptiste Barth over 14 years ago

Haha, I had the same patch, exactly :) I was trying to write some tests because this part is not very well tested I think. Maybe later, thanks Yuki.

Actions #4

Updated by Siegfried Vogel almost 14 years ago

I'm having the same problem with filtering issues by a "list" custom field.
I get an "internal error" after applying the filter.
The patch failed to install, so I did edit the both files manually.
After the patch, I still had the same problem.

Is there a newer patch or solution for my environment:
(Redmine V.1.1.0, MySQL 5.1, Ubuntu)

Actions #5

Updated by Siegfried Vogel almost 14 years ago

After some searching, I found the culprit in my case: The Question Plugin, V.0.3.0.
See this Issue: #4788

The patch provided there did the trick for me in Redmine V.1.1.0, MySQL 5.1.x

Actions #6

Updated by Jean-Philippe Lang about 13 years ago

  • Status changed from 7 to Closed
  • Resolution set to Fixed

Fixed a few months ago in r6228 and r6256.

Actions

Also available in: Atom PDF