Page 1 of 1

How to hide the "Steps To Reproduce" edit box?

Posted: 12 Apr 2013, 10:35
by lchydp
Hello everybody!
I use MantisBT V1.2.14.When I report an issue,"Steps To Reproduce" edit box is shown on the "Report Issue" page.I think it is useless.The steps to reproduce the problem should be filled in "Description".So I want to hide the "Steps To Reproduce" edit box.But I don't know how to operate.Could sb. help me?

Re: How to hide the "Steps To Reproduce" edit box?

Posted: 12 Apr 2013, 10:43
by atrol
Add the following lines to file config_inc.php

Code: Select all

	$g_bug_report_page_fields = array(
		'category_id',
		'view_state',
		'handler',
		'priority',
		'severity',
		'reproducibility',
		'platform',
		'os',
		'os_version',
		'product_version',
		'product_build',
		'target_version',
		'summary',
		'description',
		'additional_info',
		'attachments',
		'due_date',
	);

Re: How to hide the "Steps To Reproduce" edit box?

Posted: 13 Apr 2013, 05:48
by lchydp
Perfect!Thank you very much!
atrol wrote:Add the following lines to file config_inc.php

Code: Select all

	$g_bug_report_page_fields = array(
		'category_id',
		'view_state',
		'handler',
		'priority',
		'severity',
		'reproducibility',
		'platform',
		'os',
		'os_version',
		'product_version',
		'product_build',
		'target_version',
		'summary',
		'description',
		'additional_info',
		'attachments',
		'due_date',
	);

Re: How to hide the "Steps To Reproduce" edit box?

Posted: 02 May 2013, 05:54
by lchydp
Hello moderator,
Now the "Steps To Reproduce" edit box has been hiden in "Report Issue" page.But when I edit an existing bug,it appears after I click the "edit" button.Need I do any other configurations?
lchydp wrote:Perfect!Thank you very much!
atrol wrote:Add the following lines to file config_inc.php

Code: Select all

	$g_bug_report_page_fields = array(
		'category_id',
		'view_state',
		'handler',
		'priority',
		'severity',
		'reproducibility',
		'platform',
		'os',
		'os_version',
		'product_version',
		'product_build',
		'target_version',
		'summary',
		'description',
		'additional_info',
		'attachments',
		'due_date',
	);

Re: How to hide the "Steps To Reproduce" edit box?

Posted: 02 May 2013, 06:52
by Lapinkiller
Hello,

Check into config_defaults_inc.php
you have the same for the update/edit page :

Code: Select all

/**
	 * An array of the fields to show on the bug update page.
	 *
	 * To overload this setting per project, then the settings must be included in the database through
	 * the generic configuration form.
	 *
	 * @global array $g_bug_update_page_fields
	 */
	$g_bug_update_page_fields = array (
		'id',
		'project',
		'category_id',
		'view_state',
		'date_submitted',
		'last_updated',
		'reporter',
		'handler',
		'priority',
		'severity',
		'reproducibility',
		'status',
		'resolution',
		'projection',
		'eta',
		'platform',
		'os',
		'os_version',
		'product_version',
		'product_build',
		'target_version',
		'fixed_in_version',
		'summary',
		'description',
		'additional_info',
		'steps_to_reproduce',
		'attachments',
		'due_date',
	);

Copy/paste into your config_inc.php with removing 'steps_to_reproduce' line ;)

Re: How to hide the "Steps To Reproduce" edit box?

Posted: 06 May 2013, 08:54
by lchydp
Oh,I see.Thank you very much! :D
Lapinkiller wrote:Hello,

Check into config_defaults_inc.php
you have the same for the update/edit page :

Code: Select all

/**
	 * An array of the fields to show on the bug update page.
	 *
	 * To overload this setting per project, then the settings must be included in the database through
	 * the generic configuration form.
	 *
	 * @global array $g_bug_update_page_fields
	 */
	$g_bug_update_page_fields = array (
		'id',
		'project',
		'category_id',
		'view_state',
		'date_submitted',
		'last_updated',
		'reporter',
		'handler',
		'priority',
		'severity',
		'reproducibility',
		'status',
		'resolution',
		'projection',
		'eta',
		'platform',
		'os',
		'os_version',
		'product_version',
		'product_build',
		'target_version',
		'fixed_in_version',
		'summary',
		'description',
		'additional_info',
		'steps_to_reproduce',
		'attachments',
		'due_date',
	);

Copy/paste into your config_inc.php with removing 'steps_to_reproduce' line ;)

Re: How to hide the "Steps To Reproduce" edit box?

Posted: 19 Jan 2022, 13:50
by Cy4n
many thanks guys! great hints! :) ..even in 2022 it is still helpful