View Issue Details

IDProjectCategoryView StatusLast Update
0023602mantisbtfilterspublic2018-03-17 18:32
Reporterdemon_ru Assigned Tocproensa  
PriorityhighSeveritymajorReproducibilityalways
Status closedResolutionfixed 
Product Version2.8.0 
Summary0023602: Filtering 'DATE' type custom fields bug
Description

Case:

  • custom field with type 'date'
  • other custom fields any type

Filter of bug list with any values of any other custom fields (not first field with type 'date')
Result: filter is ignored.

Reason:
core/filter_api.php

                                # skip date custom fields with value of "any"
                                if( $t_def['type'] == CUSTOM_FIELD_TYPE_DATE && $t_field[0] == CUSTOM_FIELD_DATE_ANY ) {
                                        break;
                                }

treatment:
-- break;
++ continue;

TagsNo tags attached.

Activities

cproensa

cproensa

2017-11-12 06:29

developer   ~0058178

Is this a reproducible error?
Seems like that code is never reached because of previous

if( !filter_field_is_any( $t_field ) )
cproensa

cproensa

2017-11-13 15:07

developer   ~0058193

I have added a proper check for date custom fields in the PR: https://github.com/mantisbt/mantisbt/pull/1220

If this is proven as a bug in current release, it could be integrated, however I was not able to reproduce it.

cproensa

cproensa

2018-03-05 06:56

developer   ~0059083

For v2.13 that code has been changed
If you can reproduce the reported issue, feel free to reopen.