How can I globally suppress some of the fields?

Get help from other users here.

Moderators: Developer, Contributor

Post Reply
T.C.
Posts: 3
Joined: 13 Jan 2017, 22:19

How can I globally suppress some of the fields?

Post by T.C. »

In this post, atrol said:
Are you aware that some of the fields can be globally supressed in the whole system without changing source code? (at least if you are using version 1.2.x of MantisBT)
Can anyone elaborate on that? How would I globally suppress a field without changing source code?

-TC
atrol
Site Admin
Posts: 8378
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: How can I globally suppress some of the fields?

Post by atrol »

Some of the fields can be globally enabled/disabled in the whole system by setting options like

Code: Select all

/** 
 * Enable or disable usage of the ETA field.
 * @global integer $g_enable_eta
 */
$g_enable_eta = OFF;
Some other fields can be disabled on some pages, but not globally, by setting options like

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
 *   - 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.
 *
 * 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',
);
Please use Search before posting and read the Manual
Post Reply