Page 1 of 1

Customize Issue Fields Part2

Posted: Dec 25, 2018 4:15 am
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: Dec 26, 2018 6:38 am
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: Dec 27, 2018 4:47 am
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: Dec 27, 2018 5:01 am
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:
Dec 27, 2018 4:47 am
by 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: Dec 28, 2018 2:08 am
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: Dec 28, 2018 5:13 am
by atrol
daby wrote:
Dec 28, 2018 2:08 am
some 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: Dec 31, 2018 12:22 am
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: Jan 01, 2019 2:42 pm
by atrol
daby wrote:
Dec 31, 2018 12:22 am
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