Defect #1078

Custom fields added each issue even if not used

Added by John Reynolds 77 days ago. Updated 69 days ago.

Status:Closed Start:2008-04-19
Priority:Normal Due date:
Assigned to:- % Done:

0%

Category:Custom fields
Target version:0.7
Affected version:

0.7.0-RC1

Resolution:

Fixed


Description

I added two custom fields used in the issue area. Our policy is to leave the two fields blank unless we have something to add to them.

I have a custom query/filter which states that they should be shown if either of the custom fields are NOT blank.

What happens is that apparently if you even tab into the fields on the issue page it creates an entry in custom_values of an empty string. Once that happens, the query/filter assumes that the values aren't blank. It seems to me that if the custom fields are left blank, there shouldn't be an entry created in the custom_values table.

I had trouble understanding the query/filter. I set it so that it reads "is not" and "blank". Apparently leaving the filter field blank doesn't work, but putting in the text, "blank" actually tells it to do the right thing. Very odd.

I can provide a movie/screenshot series if you like.

Associated revisions

Revision 1362
Added by jplang 69 days ago

Fixes custom field filters behaviour (#1078).

History

2008-04-26 19:00 - Jean-Philippe Lang

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

Custom field filters wasn't working as expected indeed.
It's fixed in r1362. You can use the operator "all" rather than "is not" + "blank" to see tickets that doesn't have a blank value.

Also available in: Atom PDF