php - How to custom filter bugs in MantisBT -


i want filter bugs in mantisbt 1.2.14 only defined custom filter. can load filter database using

$t_filter = filter_ensure_valid_filter( filter_get_row($t_filter_id) ); 

then try rows filter with:

$t_rows = filter_get_bug_rows( $f_page_number, $t_per_page,                                 $t_page_count,$t_bug_count, $t_filter ); 

with paramaters $t_filter equals null. here turns out, bugs loaded.

i tried

$t_rows = filter_get_bug_rows( $f_page_number, $t_per_page, $t_page_count,                                 $t_bug_count, $t_filter, $t_filter['project_id'] ); 

which should set project filter on, no success.

i tried done in view_all_bug_page.php of mantis:

$t_rows = filter_get_bug_rows( $f_page_number, $t_per_page, $t_page_count,                                 $t_bug_count, null, null, null, true ); 

but here (i guess) additionally using current project cache filtering.

is possible use only advanced custom filters on bugs in mantisbt, , how?

the solution was: one has use filter string $t_filter array.

# filter string $t_filter_string = explode('#', $t_filter['filter_string'], 2);  # bug rows unserialized filter string $t_rows = filter_get_bug_rows($f_page_number, $t_per_page, $t_page_count,                                $t_bug_count, unserialize($t_filter_string[1]),                               helper_get_current_project()); 

so wanted rows returned , additionally current project used filter.


Popular posts from this blog

How to calculate SNR of signals in MATLAB? -

c# - Attempting to upload to FTP: System.Net.WebException: System error -

ios - UISlider customization: how to properly add shadow to custom knob image -