douxuanou2787 2013-04-25 12:52
浏览 76


I want to filter my bugs in MantisBT 1.2.14 only by a defined custom filter. I can load the filter from the database by using

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

Then I try to get the rows by this filter with:

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

with all paramaters but $t_filter equals null. Here it turns out, that always all bugs are 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 the project to filter on, but with no success.

I Also tried to do it like it is done in the 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) it is additionally using the current project from cache for filtering.

Is it possible to use only advanced custom filters on bugs in MantisBT, and how?

  • 写回答



      相关推荐 更多相似问题


      • ¥30 grid.newpage() 中的错误 (main.R#9): no active device and default getOption("device") is invalid
      • ¥15 求一个超难的动态新增元素的 click 事件无效的解决办法。
      • ¥20 怎么修改mediawiki允许上传的文件大小?
      • ¥15 agrySEXPAYm 是毒吗
      • ¥50 Java实现注册登录实现数据库增删改查功能,数据库至少两个表
      • ¥20 求解R语言的数据分析问题
      • ¥20 求GD32F105和305解除读保护方法教程
      • ¥15 C++代码优化,复杂度太高,无法通过clang-tidy检查,用什么办法可以优=化
      • ¥15 关于跨链隐私保护方案
      • ¥15 node mongodb 根据id给子集合list添加对象 请问应该如何操作