Filter according to new custom status in my_view
Posted: 25 Jan 2017, 11:29
I've add new status in my workflow
My conf (MantisBT 2.0.0)
- i defined my new workflow string and status process in config_inc.php ($g_status_enum_string, $g_status_enum_workflow, $g_bug_xxxx_status_threshold = XXXXX)
- i defined all constants according to my new status (define XXXX , define YYYY with values according to rank in my new workflow)
- i changed my_view_boxes display in config_inc.php
- i translated my status in string_french.txt
- i defined my new filters in my_view_inc.php as follow
$t_bug_xxxxx_status_threshold = config_get('bug_xxxxx_status_threshold');
$c_filter['xxxxx'] = array(
FILTER_PROPERTY_CATEGORY => Array( '0' => META_FILTER_ANY,),
FILTER_PROPERTY_SEVERITY_ID => Array( '0' => META_FILTER_ANY,),
FILTER_PROPERTY_STATUS_ID => Array( '0' => $t_bug_xxxxx_status_threshold,),
FILTER_PROPERTY_HIGHLIGHT_CHANGED => $t_default_show_changed, FILTER_PROPERTY_REPORTER_ID => Array( '0' => META_FILTER_ANY,),
FILTER_PROPERTY_HANDLER_ID => Array( '0' => META_FILTER_ANY,),
FILTER_PROPERTY_RESOLUTION_ID => Array( '0' => META_FILTER_ANY,),
FILTER_PROPERTY_PRODUCT_BUILD => Array( '0' => META_FILTER_ANY,),
FILTER_PROPERTY_PRODUCT_VERSION => Array( '0' => META_FILTER_ANY,),
FILTER_PROPERTY_HIDE_STATUS_ID => Array( '0' => $t_hide_status_default,),
FILTER_PROPERTY_MONITOR_USER_ID => Array( '0' => META_FILTER_ANY,),
Everything is fine except for filtering in boxes (in summary page)
All custom boxes are displayed with the right title but without filter. It means that all the bugs are displayed in all boxes (except for assigned to me, not assigned, resolved which are filtered correctly)
Is anybody experienced this ?
Thank's for your help
My conf (MantisBT 2.0.0)
- i defined my new workflow string and status process in config_inc.php ($g_status_enum_string, $g_status_enum_workflow, $g_bug_xxxx_status_threshold = XXXXX)
- i defined all constants according to my new status (define XXXX , define YYYY with values according to rank in my new workflow)
- i changed my_view_boxes display in config_inc.php
- i translated my status in string_french.txt
- i defined my new filters in my_view_inc.php as follow
$t_bug_xxxxx_status_threshold = config_get('bug_xxxxx_status_threshold');
$c_filter['xxxxx'] = array(
FILTER_PROPERTY_CATEGORY => Array( '0' => META_FILTER_ANY,),
FILTER_PROPERTY_SEVERITY_ID => Array( '0' => META_FILTER_ANY,),
FILTER_PROPERTY_STATUS_ID => Array( '0' => $t_bug_xxxxx_status_threshold,),
FILTER_PROPERTY_HIGHLIGHT_CHANGED => $t_default_show_changed, FILTER_PROPERTY_REPORTER_ID => Array( '0' => META_FILTER_ANY,),
FILTER_PROPERTY_HANDLER_ID => Array( '0' => META_FILTER_ANY,),
FILTER_PROPERTY_RESOLUTION_ID => Array( '0' => META_FILTER_ANY,),
FILTER_PROPERTY_PRODUCT_BUILD => Array( '0' => META_FILTER_ANY,),
FILTER_PROPERTY_PRODUCT_VERSION => Array( '0' => META_FILTER_ANY,),
FILTER_PROPERTY_HIDE_STATUS_ID => Array( '0' => $t_hide_status_default,),
FILTER_PROPERTY_MONITOR_USER_ID => Array( '0' => META_FILTER_ANY,),
Everything is fine except for filtering in boxes (in summary page)
All custom boxes are displayed with the right title but without filter. It means that all the bugs are displayed in all boxes (except for assigned to me, not assigned, resolved which are filtered correctly)
Is anybody experienced this ?
Thank's for your help