View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0012261 | mantisbt | filters | public | 2010-08-16 07:30 | 2019-03-16 20:20 |
Reporter | Eisbaer | Assigned To | cproensa | ||
Priority | high | Severity | minor | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Product Version | 1.2.1 | ||||
Target Version | 2.20.0 | Fixed in Version | 2.20.0 | ||
Summary | 0012261: Cannot filter by versions of parent project when child project selected | ||||
Description | In Mantis I can define "versions" in a project A. But on the "View Issues" page, when having selected a subproject B of A, the comboboxes "Target Version", "Fixed in Version" and "Product Version" do not(!) contain these versions. Thus filtering is not possible. | ||||
Steps To Reproduce | Define Project A. Define Project B as a subproject auf A. | ||||
Additional Information | Filtering is only possible, when project A is selected. | ||||
Tags | No tags attached. | ||||
I have the same problem with MantisBT 1.2.8 I am not a specialist but I mmade a change in function "version_get_all_rows_with_subs" file "version_api.php". the list is correct in the sub-projects, but not quite in the project //PERSO-MIN-DEBUT 31/05/2012 : Sorry but this change does not work ! |
|
Duplicate of 0005668 ? |
|
Absolutely it isn't a duplicate of 0005668. The 0005668 issue is currently almost resolved, but it doesn't touch the filtering problem. Will this issue be resolved in 1.2.x release? |
|
My vote +1 on this issue and a request to give this issue more priority. I have just upgraded from 1.6.6 to 1.2.15 just for inheritance of categories and versions and noticed filtering is not possible on inherited versions. That is an essential and primary product functionality when the system allows the use of inheritance. Any workaround, besides copying all versions back to all projects, is welcome. |
|
patches are also welcome ;-) |
|
Look at 0005668:0037046 |
|
Any news on this? Patches referenced don't do anything. |
|
Maybe simple workaround is this: add this line (parent projects): $t_project_where = '('. $t_project_where .' or '. version_get_project_where_clause( $p_project_id, null ) .')'; |
|
Thanks masud, your patch is beter than this https://www.mantisbt.org/bugs/view.php?id=5668#c37046 |
|
Thanks @masud, I have applied this successfully to v 2.2.0-devmaster-e40a285 |
|
I've found same issue on 2.10.0 and 2.11.0 do change on function <b>print_filter_show_version() on filter_form_api.php</b> FROM TO (JUST REMOVE true) |
|
MantisBT: master a9cd4cf6 2019-02-13 13:32 Committer: vboctor Details Diff |
Evaluate versions for multiple projects - Make `version_get_all_rows()` evaluate mutiple projects, when we want to get all versions provided by a group of projects. Including parent projects if version inheritance is enabled. - Make `version_should_show_product_version()` evaluate multiple projects, as this conditions is needed in a context for several projects. Eg: filters, bug-action-group, ... - Make `print_version_option_list()` evaluate multiple projects. And remove the functionality for including version from subprojects. - Including subproject versions in `print_version_option_list()` is now a task for the caller, by passing the exact list of projects for which versions are needed. This project list is managed directly by the filter_api and the filter specific logic. Fixes: 0012261 |
Affected Issues 0012261 |
|
mod - bug_actiongroup_page.php | Diff File | ||
mod - core/filter_form_api.php | Diff File | ||
mod - core/print_api.php | Diff File | ||
mod - core/version_api.php | Diff File |