View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0017515 | mantisbt | bugtracker | public | 2014-07-16 11:18 | 2014-12-08 02:08 |
| Reporter | dregad | Assigned To | dregad | ||
| Priority | normal | Severity | major | Reproducibility | always |
| Status | closed | Resolution | fixed | ||
| Product Version | 1.3.0dev | ||||
| Target Version | 1.3.0-beta.1 | ||||
| Summary | 0017515: 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. | ||||
| Tags | No tags attached. | ||||
|
MantisBT: master 76f82ef5 2014-07-16 07:09 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 | ||