View Issue Details

IDProjectCategoryView StatusLast Update
0017654mantisbtfilterspublic2014-12-08 02:07
Reporteratrol Assigned Tovboctor  
PrioritynormalSeveritymajorReproducibilityalways
Status closedResolutionfixed 
Product Version1.3.0dev 
Target Version1.3.0-beta.1 
Summary0017654: Filter section on "View Issues" page broken
Description

There are three fields that throw error "APPLICATION ERROR 0000026 Data Type mismatch" when clicking on the field name

  • View Status
  • Match Type
  • Highlight changed (hours)
TagsNo tags attached.

Relationships

parent of 0017910 closedatrol MatchType / Hightlight changed expands all filter fields. 
has duplicate 0017801 closedatrol Data type mismatch when clicking changed hours filter 

Activities

grangeway

grangeway

2014-09-14 14:31

reporter   ~0041216

can you confirm you mean "view status" ?

atrol

atrol

2014-09-14 14:39

developer   ~0041217

Last edited: 2014-09-14 14:39

Not sure what I should confirm.
Have a look at the field names that I mentioned in description field.

grangeway

grangeway

2014-09-14 15:00

reporter   ~0041218

when I tried it I couldn't repro view status, but could the other fields

grangeway

grangeway

2014-09-14 15:07

reporter   ~0041219

PR #319

atrol

atrol

2014-09-14 15:14

developer   ~0041220

I was also no longer able to reproduce it with "View Status"
I am able to reproduce it after clearing browser cache and cookies and logging in again.


APPLICATION ERROR 0000026
Data Type mismatch. Enable detailed error messages for further information.
Please use the "Back" button in your web browser to return to the previous page. There you can correct whatever problems were identified in this error or select another action. You can also click an option from the menu bar to go directly to a new section.
Full path: /var/www/mantisbt/core/helper_api.php
Line: 188
Variable Value Type
p_var1 string
p_var2 0 integer
p_strict 1 boolean
Filename Line Function Args
/var/www/mantisbt/core/helper_api.php 188 - - trigger_error ( <string>'26', <integer>256 )
/var/www/mantisbt/core/helper_api.php 265 - - helper_check_variables_equal ( <string>'', <integer>0, <boolean>true )
/var/www/mantisbt/core/filter_api.php 3822 - - check_selected ( <string>'', <integer>0 )

        • print_filter_view_state -
          /var/www/mantisbt/return_dynamic_filters.php 134 - - call_user_func ( <string>'print_filter_view_state' )
vboctor

vboctor

2014-10-25 15:58

manager   ~0041660

Here is the pull request:
https://github.com/mantisbt/mantisbt/pull/525

atrol

atrol

2014-11-03 03:13

developer   ~0041753

I get no longer APPLICATION ERROR # 26 when clicking "Match Type" or "Highlight changed (hours)"

But I get the value lists for ALL fields instead of getting just the list of the clicked field.

I think this is the expected behavior with JavaScript disabled.
Of course, JavaScript is not disabled as all other fields are working fine.

vboctor

vboctor

2014-11-20 22:33

manager   ~0041873

I've opened 0017910 for the two fields expanding all the fields.

Related Changesets

MantisBT: master cb23fb24

2014-10-25 11:56

vboctor


Details Diff
Fix php errors with filters

This fixes the php errors that occur when clicking on View State, Match Type, and Highlight Changed.

The change includes:
- When a filter is retrieved for a user, if the user doesn't have a filter or something is wrong with it, return default fitler.
- Move access to $g_filter into the filter_api and introduce filter_init() API. Default $g_filter in filter_api as well.
- View State initialization should use correct type to avoid type mismatch in check_selected().

Fixes 0017654
Affected Issues
0017654
mod - core/current_user_api.php Diff File
mod - core/filter_api.php Diff File
mod - core/user_api.php Diff File
mod - return_dynamic_filters.php Diff File
mod - view_all_inc.php Diff File
mod - view_filters_page.php Diff File