Hide mandatory fields
Posted: 08 Mar 2022, 13:20
I want to remove all fields on the "new issue" form that shouldn't be assigned by the reporter, keep it to a minimal.
For example the field "category" is mandatory and needs a value. Can I somehow hide the field with a default value?
Removing the field from $g_bug_report_page_fields gives a database error when submitting the issue.
APPLICATION ERROR #11
A necessary field "category" was empty. Please recheck your inputs.
Please use the "Back" button in your web browser to return to the previous page. There you can correct whatever problems were identified in this error or select another action. You can also click an option from the menu bar to go directly to a new section.
For example the field "category" is mandatory and needs a value. Can I somehow hide the field with a default value?
Removing the field from $g_bug_report_page_fields gives a database error when submitting the issue.
Code: Select all
$g_bug_report_page_fields = array(
'additional_info',
'attachments',
'priority',
'reproducibility',
'severity',
'steps_to_reproduce',
);
A necessary field "category" was empty. Please recheck your inputs.
Please use the "Back" button in your web browser to return to the previous page. There you can correct whatever problems were identified in this error or select another action. You can also click an option from the menu bar to go directly to a new section.