I'm customizing Mantis 1.0.7 and I need some help and advices :
- I'm currently changing the Action group menu (on the 'View all bugs' page) : I needed to remove somme actions (delete bugs and others) and did it pretty easily, but now I'd like to add the "Update resolution" action.
I added it to the menu, but i can't find where to add the function that would update Resolution. If you have any ideas on that...
***
- On a different subject, I added a multiple workflow, based on user's role (guest, developper, etc..) which basically works like this :
In bug_api.php
Code: Select all
function bug_check_workflow( $p_bug_status, $p_wanted_status ) {
$t_user_access_level = current_user_get_access_level();
if($t_user_access_level == '10'){
$t_status_enum_workflow = config_get( 'status_enum_workflow_invit' );
} else if ($t_user_access_level == '25'){
$t_status_enum_workflow = config_get( 'status_enum_workflow_dev' );
} else if ($t_user_access_level == '40'){
$t_status_enum_workflow = config_get( 'status_enum_workflow_spec' );
} else if ($t_user_access_level == '55'){
$t_status_enum_workflow = config_get( 'status_enum_workflow_r7' );
} else if ($t_user_access_level == '70'){
$t_status_enum_workflow = config_get( 'status_enum_workflow_gest' );
} else if ($t_user_access_level == '90'){
$t_status_enum_workflow = config_get( 'status_enum_workflow_admin' );
}Any advices ?
Thanks.