Question customizing the my view report

General discussion of Mantis.

Moderators: Developer, Contributor

Post Reply
bbradley

Question customizing the my view report

Post by bbradley »

I was looking to add a new section to the My view page. Which I was able to do by editing the code, except I don't understand the filters section. I can either use a built in threshold, or an individual status

Is it possible to exclude multiple status's? I tried:

Code: Select all

FILTER_PROPERTY_HIDE_STATUS_ID => Array( 
    '0' => $t_hide_status_default, 
    '1'=> DEVELOPMENT	
),
but it ignores the second value in the array. I would like to hide anything resolved and above, and the development status, but only in the one my view. So I don't want to rearrange the status's and change the hide level default.

I also tried this:

Code: Select all

FILTER_PROPERTY_STATUS_ID => Array(10,5),
and it still ignores the second. I assume it must be possible, as the advanced filters search page works with multiple values. So, I must be missing something.

Thanks for any help.
pay2play

Re: Question customizing the my view report

Post by pay2play »

Boxes to be shown on the My View page and their order, 0 means not shown

$g_my_view_boxes = array (
'assigned' => '1',
'unassigned' => '2',
'reported' => '3',
'resolved' => '4',
'recent_mod' => '5',
'monitored' => '6',
'feedback' => '0',
'verify' => '0',
'my_comments' => '0'
);

This of course needs to be added to your config_inc file.
Post Reply