Modify the Page Report Inicident

General discussion of Mantis.

Moderators: Developer, Contributor

Post Reply
Jaimeortegavelez
Posts: 2
Joined: 26 Aug 2020, 14:48

Modify the Page Report Inicident

Post by Jaimeortegavelez »

Hi,

Someone can help me to know how can update teh Report Incident or the create issue page?

This page currently has many fields and I want to hide some of them.

Thank you
Best Regards,
Jaime
cas
Posts: 1586
Joined: 11 Mar 2006, 16:08
Contact:

Re: Modify the Page Report Inicident

Post by cas »

There are standard settings for that.
Copy the below code to config/config_inc.php and adjust according your liking.

Code: Select all

/**
 * An array of optional fields to show on the bug report page.
 *
 * The following optional fields are allowed:
 *   - additional_info
 *   - attachments
 *   - category_id
 *   - due_date
 *   - handler
 *   - monitors
 *   - os
 *   - os_version
 *   - platform
 *   - priority
 *   - product_build
 *   - product_version
 *   - reproducibility
 *   - resolution
 *   - severity
 *   - status
 *   - steps_to_reproduce
 *   - target_version
 *   - view_state
 *
 * The summary and description fields are always shown and do not need to be
 * listed in this option. Fields not listed above cannot be shown on the bug
 * report page. Visibility of custom fields is handled via the Manage =>
 * Manage Custom Fields administrator page.
 *
 * Note that 'monitors' is not an actual field; adding it to the list will let
 * authorized reporters select users to add to the issue's monitoring list.
 * Monitors will only be notified of the submission if both their e-mail prefs
 * and the flags allow it (i.e. `$g_notify_flags['new']['monitor'] = ON`).
 * @see $g_monitor_add_others_bug_threshold
 * @see $g_notify_flags
 *
 * This setting can be set on a per-project basis by using the
 * Manage => Manage Configuration administrator page.
 *
 * @global array $g_bug_report_page_fields
 */
$g_bug_report_page_fields = array(
	'additional_info',
	'attachments',
	'category_id',
	'due_date',
	'handler',
	'os',
	'os_version',
	'platform',
	'priority',
	'product_build',
	'product_version',
	'reproducibility',
	'severity',
	'steps_to_reproduce',
	'tags',
	'target_version',
	'view_state',
); 
Jaimeortegavelez
Posts: 2
Joined: 26 Aug 2020, 14:48

Re: Modify the Page Report Inicident

Post by Jaimeortegavelez »

Hi Cas,

Thank you so much for your comments! I just made the modification that you told me but Should I do something else? Like restar the service or something like that to see the changes.

I am peatty new using mantis. So sorry if I am asking something really obvious

Thank you
Best Regards,
Jaime
cas
Posts: 1586
Joined: 11 Mar 2006, 16:08
Contact:

Re: Modify the Page Report Inicident

Post by cas »

No, if you made the changes in the correct file, all you need to do, is to report an incident and you should see only the fields as you have defined.
Post Reply