Adding text or enabling a notifications when reporting
Moderators: Developer, Contributor
Adding text or enabling a notifications when reporting
We are looking to have a way to add text detailing the proper usage of reporting a bug. So far, besides changing the source code of mantis I haven't found a way. Are there any options to alert a user with information about how our process is handled?
Re: Adding text or enabling a notifications when reporting
Best way: Write a plugin that catches event EVENT_REPORT_BUG_FORM_TOP
You could also use the configuration option $g_top_include_page
You could also use the configuration option $g_top_include_page
Re: Adding text or enabling a notifications when reporting
Is there a way to restrict that top banner to a specific project and specifically the report page?
Re: Adding text or enabling a notifications when reporting
You can check for page name and project in PHP code.
E.g. something like
if( is_page_name( 'bug_report_page.php' ) && helper_get_current_project() == <theIdOfTheProjectWhereYouWantToDisplayTheMessage> )
Not sure if this will work with $g_top_include_page
That's why I recommend to write a plugin.
E.g. something like
if( is_page_name( 'bug_report_page.php' ) && helper_get_current_project() == <theIdOfTheProjectWhereYouWantToDisplayTheMessage> )
Not sure if this will work with $g_top_include_page
That's why I recommend to write a plugin.