Page 1 of 1

Customize Issue Fields Part2

Posted: 25 Dec 2018, 09:15
by daby
Hello, I have referenced other advanced articles on the forum, as well as the system administrator's manual. I have hidden the fields mentioned by $g_bug_report_page_fields and used the custom fields, but I found the default sum and Description These two required fields cannot be hidden. How can I hide these two fields?
thx

Mantis:2.6.0
PHP:5.2.0
SQL:MySQL 5.7.17
操作系統:Linux

Re: Customize Issue Fields Part2

Posted: 26 Dec 2018, 11:38
by atrol
It's documented that the summary and description fields are always shown and required fields.
You would have to change Mantis source code to get what you want.
Mantis:2.6.0
As a side note, you should upgrade your system as there are quite a lot of issues fixed since the version you use, especially security related ones.
PHP:5.2.0
Really? The minimum recommend PHP version to run Mantis 2.x is 5.5, I would recommend 7.2 at the moment http://php.net/supported-versions.php

Re: Customize Issue Fields Part2

Posted: 27 Dec 2018, 09:47
by daby
Thank you very much for your answer. But what do you mean by simply modifying CONFIG_DEFAULTS_INC.PHP can't solve my problem?

Re: Customize Issue Fields Part2

Posted: 27 Dec 2018, 10:01
by atrol
The documentation for $g_bug_report_page_fields https://www.mantisbt.org/docs/master/en ... fig.fields
tells
The summary and description fields are always shown
You can't change them by changing $g_bug_report_page_fields in config_inc.php.
daby wrote: 27 Dec 2018, 09:47by simply modifying CONFIG_DEFAULTS_INC.PHP
As a side note: Never ever change this file as you might get problems when updating.
All configuration should be done in config_inc.php or via the various Manage pages.

Re: Customize Issue Fields Part2

Posted: 28 Dec 2018, 07:08
by daby
Thank you for your correction, but some changes will be easier to change in config_DEFAULTS_INC.PHP. For example, on the REPORT ISSUE page, don't see the input of PLATFORM, then I just comment on the corresponding value in config_DEFAULTS_INC.PHP. But in config_inc.php you have to enter $g_enable_profiles = OFF; and I haven't found a parameter like $g_enable_profiles in the file.

Re: Customize Issue Fields Part2

Posted: 28 Dec 2018, 10:13
by atrol
daby wrote: 28 Dec 2018, 07:08some changes will be easier to change in config_DEFAULTS_INC.PHP. then I just comment on the corresponding value in config_DEFAULTS_INC.PHP.
Commenting values can lead to warnings in your web server or PHP errors logs and can introduce other unwanted side effects.

What's the problem to add this line to config_inc,php ?

Code: Select all

$g_enable_profiles = OFF;

Re: Customize Issue Fields Part2

Posted: 31 Dec 2018, 05:22
by daby
There is no problem, just in which file can I find the value of this parameter? I accidentally saw it in a solution file, but other parameter values have not been found yet.

Re: Customize Issue Fields Part2

Posted: 01 Jan 2019, 19:42
by atrol
daby wrote: 31 Dec 2018, 05:22 There is no problem, just in which file can I find the value of this parameter?
I am not sure I understand your question.
The default value of this parameter is set in config_defaults_inc.php.
You can override the defaults in config_inc.php or database http://mantisbt.org/docs/master/en-US/A ... nfig.intro