View Issue Details
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0016358||mantisbt||filters||public||2013-09-04 08:36||2017-10-08 23:52|
|Target Version||2.7.0||Fixed in Version||2.7.0|
|Summary||0016358: Custom field filter does not recusrively read all items from sub-projects|
Filter combo box does not include custom field strings from the sub-projects.
|Steps To Reproduce|
Create project stucture:
Define Custom field (String) to all projects. Create issue to all projects and define unique value for each issue per each project.
Select project Test_root, View Issues and open filter for a custom field. Filter combobox will contain only items from Test_root and sub-projects are excluded. This is not logical to user because Mantis Issues are shown recursively when Test_root is selected.
core/custom_field_api.php function custom_field_distinct_values() does not go though the sub project when ALL_PROJECTS != $p_project_id
|Tags||No tags attached.|
As a workaround used this patch.
Please note that this does not work if custom field is not linked in parent project. It work only when parent has custom field enabled and it will lookup the same custom fields from any subproject.
MantisBT: master 19fb937b
Committer: dregad Details Diff
|Get custom fields values from a list of projects
Extend custom_field_distinct_values() to allow a list of projects to get
Extend the custom fields filter input to show values from all the
projects included in the filter scope, which may also include
|mod - core/custom_field_api.php||Diff File|
|mod - core/filter_form_api.php||Diff File|