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
Customize Issue Fields Part2
Moderators: Developer, Contributor
Re: Customize Issue Fields Part2
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.
You would have to change Mantis source code to get what you want.
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.Mantis:2.6.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.phpPHP:5.2.0
Re: Customize Issue Fields Part2
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
The documentation for $g_bug_report_page_fields https://www.mantisbt.org/docs/master/en ... fig.fields
tells
All configuration should be done in config_inc.php or via the various Manage pages.
tells
You can't change them by changing $g_bug_report_page_fields in config_inc.php.The summary and description fields are always shown
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
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
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
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
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