View Issue Details

IDProjectCategoryView StatusLast Update
0023602mantisbtfilterspublic2017-11-13 15:07
Reporterdemon_ruAssigned Tocproensa 
PriorityhighSeveritymajorReproducibilityalways
Status feedbackResolutionopen 
Product Version2.8.0 
Target VersionFixed in Version 
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.

Issue History

Date Modified Username Field Change
2017-11-07 14:00 demon_ru New Issue
2017-11-08 03:01 dregad Description Updated View Revisions
2017-11-12 06:29 cproensa Note Added: 0058178
2017-11-12 06:29 cproensa Assigned To => cproensa
2017-11-12 06:29 cproensa Status new => feedback
2017-11-13 15:07 cproensa Note Added: 0058193