View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0027826 | mantisbt | bugtracker | public | 2021-01-01 03:58 | 2021-03-05 19:43 |
Reporter | gthomas | Assigned To | dregad | ||
Priority | normal | Severity | minor | Reproducibility | have not tried |
Status | closed | Resolution | fixed | ||
Product Version | 2.24.4 | ||||
Target Version | 2.24.5 | Fixed in Version | 2.24.5 | ||
Summary | 0027826: ERROR_CATEGORY_NOT_FOUND_FOR_PROJECT thrown for Category '0' | ||||
Description | With release-2.24.4 "Category '0' not available in project" error is thrown on New Issue. I'm not using categories ($g_allow_no_category = ON). | ||||
Tags | patch | ||||
For now, I've patched my instance with:
to treat the 0 category as existing. |
|
Thanks for the report, I'll have a look. |
|
Bug confirmed, regression introduced in MantisBT master a4c4865b (see 0027361) |
|
@dregad not sure you noticed that our build for 2.24.4 failed due to errors around 0 category |
|
Thanks for the quick resolve! |
|
I didn't thanks for the heads up, I'll check it now.
You're welcome |
|
It would appear that the PR I submitted fixes the issue. Strange that I didn't get the notification e-mail from Travis. I usually get one when the build fails, but nothing when it is successful so I assumed it was OK and didn't notice that something was wrong. A shame, because I could have avoided this regression. I'll check what's going on with my Travis setup. |
|
MantisBT: master a4c4865b 2020-11-22 07:54 Details Diff |
Prevent setting category not belonging to project When retrieving a category for a given project, make sure that it is available in the project's hierarchy, taking inheritance into account. Fixes 0027361 |
Affected Issues 0027361, 0027826 |
|
mod - api/soap/mc_api.php | Diff File | ||
MantisBT: master 889c8d24 2020-12-13 07:06 Details Diff |
New API to check category existence within project Added 2 new functions in Category API: category_exists_in_project() and category_ensure_exists_in_project. Improve PHPDoc for category_exists() and category_ensure_exists() to clearly indicate that they check for a category's existence globally, unlike the new functions. Issue 0027361 |
Affected Issues 0027361, 0027826 |
|
mod - api/soap/mc_api.php | Diff File | ||
mod - core/category_api.php | Diff File | ||
MantisBT: master-2.24 074b3f5d 2021-01-01 06:19 Details Diff |
Fix "Category 0 not found" when reporting new issue By definition, category "0" (no category) does not exist in any project, but when empty category is allowed ($g_allow_no_category = ON), category_exists_in_project() should return true. Regression introduced by a4c4865b2102c2c0bfc53692499514db0b744dc9 in issue 0027361. Fixes 0027826 |
Affected Issues 0027361, 0027826 |
|
mod - core/category_api.php | Diff File |