MantisBT: master cb23fb24

Author Committer Branch Timestamp Parent
vboctor vboctor master 2014-10-25 11:56 master 49a89ed5
Affected Issues  0017654: Filter section on "View Issues" page broken
Changeset

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

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