Like Advanced View in 1.2.X

Get help from other users here.

Moderators: Developer, Contributor

Post Reply
Shinjiro
Posts: 6
Joined: 23 Oct 2013, 01:45

Like Advanced View in 1.2.X

Post by Shinjiro »

Hello,

Mantis: 1.2.15 / php: 5.3.27 (x86) / Apache: 2.2.25 (x86) / MySQL: 5.6.14.0 (x64) / OS: Win Server 2008

I succeeded in upgrading from 1.1.6 to 1.2.15 and opened, but [Report Issue] page is simple view,
and reporters requires some necessary columns like "Product Version", "Product Build", etc.

So I tried to add them according to the former thread titled as "bug_report_page.php", those were;

- Disabled $g_bug_report_fields settings by comment out in Config_Default_Inc.php.
- Copied $g_bug_report_fields to Config_Inc.php (actually removed all CRLF in it).

However, their columns didn't appear in the page.

Would be nice for any help, thank you in advance.
atrol
Site Admin
Posts: 8572
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: Like Advanced View in 1.2.X

Post by atrol »

Undo your changes.
Never ever change config_defaults_inc.php

Add the following lines to file config_inc.php

Code: Select all

$g_enable_product_build = ON;
$g_show_product_version = ON;
Please use Search before posting and read the Manual
Shinjiro
Posts: 6
Joined: 23 Oct 2013, 01:45

Re: Like Advanced View in 1.2.X

Post by Shinjiro »

Thank you atrol, I could show two columns in the page :D

I guess for other columns I should do the same, to add global parameters in config_inc.php.

By the way, please let me know how I can refer their global parameters name.
I searched in the manual of 1.2.X, but couldn't find $g_enable_product_build parameter,
even if found $g_show_product_version parameter in it.

It would be very helpful if I can refer some kind of a list of all of their parameters.

Thanks in advance for further help.
atrol
Site Admin
Posts: 8572
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: Like Advanced View in 1.2.X

Post by atrol »

The documentation is not perfect, e.g. have a look at http://www.mantisbt.org/bugs/view.php?id=10288 and all other open issues with category "documentation"
Feel free to contribute to MantisBT by enhancing the documentation.

I recommend to have a deeper look at config_defautls_inc.php where you find nearly all available configuration options.
Shinjiro wrote: I guess for other columns I should do the same, to add global parameters in config_inc.php.
It's not that simple. There are settings for a functionality which can be set to ON or OFF (they might affect more than one column at various places) and there are settings for a single column.

You can hide columns on report page by copying the following setting from config_defaults_inc.php to config_inc.php and removing the lines with the fields you don't want.

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',
		'steps_to_reproduce',
		'attachments',
		'due_date',
	);
Come back if you are still missing a column on report page.
Please use Search before posting and read the Manual
Shinjiro
Posts: 6
Joined: 23 Oct 2013, 01:45

Re: Like Advanced View in 1.2.X

Post by Shinjiro »

Thank you, atrol :!:

To be honest I read config_default_inc.php briefly at once but I couldn't understand well.
I need to study it well again.

Of course it's better to customize showed/hidden parameters in "Report Issue" page than
only two styles of Simple/Advanced views, however, not enough at the moment because
it's not clear how to customize for each item to be shown in each page.

We have to enhance documents as you wrote.
atrol
Site Admin
Posts: 8572
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: Like Advanced View in 1.2.X

Post by atrol »

Have also a look at the following pages for some more configuration options concerning fields
Manage > Manage Configuration > Manage Columns
My Account > Manage Columns
Please use Search before posting and read the Manual
Post Reply