View Issue Details

IDProjectCategoryView StatusLast Update
0017515mantisbtbugtrackerpublic2014-12-08 02:08
Reporterdregad Assigned Todregad  
PrioritynormalSeveritymajorReproducibilityalways
Status closedResolutionfixed 
Product Version1.3.0dev 
Target Version1.3.0-beta.1 
Summary0017515: E_RECOVERABLE_ERROR in category API
Description

The error is triggered when calling category_get_all_rows() e.g. when reporting an issue.

The problem is not visible with default MantisBT settings, as our error handler silently continues unless $g_display_errors is set to inline or halt for E_ALL or E_RECOVERABLE_ERROR.

TagsNo tags attached.

Activities

There are no notes attached to this issue.

Related Changesets

MantisBT: master 76f82ef5

2014-07-16 07:09

dregad


Details Diff
Fix E_RECOVERABLE_ERROR in category API

category_sort_rows_by_project() is called in 2 steps:
1. with a project id in 1st param to set the "preferred" project (and
2nd param null)
2. with 2 arrays containing category details

Because of this behavior, the 'array' type hint can't be used on the
first parameter as it throws an error when initializing the sort in
category_get_all_rows().

Regression introduced by 5458f7020999317b35f403fa2a0e477d6182ec12

Fixes 0017515
Affected Issues
0017515
mod - core/category_api.php Diff File