Custom fields at the beginning
Posted: 11 Mar 2021, 13:46
Hi
I've been trying to find a solution to this problem for months. I want to have custom fields at the top of the bug report page. So far I have changed the bug_report_page.php file directly by moving the code for the custom fields to the top of the form. However, this has 2 disadvantages:
1. I have to make this change every time I update Mantis.
2. User-defined fields are then always at the beginning. However, I only want certain fields at the beginning.
I then read here in the forum that this should best be solved with jQuery. So I looked up all the necessary functions in the jQuery documentation and created a small script from them that can solve the task. With the help of a plugin HowTo here in the forum, I was then able to turn it into a plugin. That also worked in the end. Unfortunately, I then found out that the bug report form could no longer be sent. Obviously, the jQuery manipulation corrupts the form.
I'm at my wits end. Is there no clean and working solution to the problem? I only find inquiries about this everywhere, but nowhere a working solution.
I've been trying to find a solution to this problem for months. I want to have custom fields at the top of the bug report page. So far I have changed the bug_report_page.php file directly by moving the code for the custom fields to the top of the form. However, this has 2 disadvantages:
1. I have to make this change every time I update Mantis.
2. User-defined fields are then always at the beginning. However, I only want certain fields at the beginning.
I then read here in the forum that this should best be solved with jQuery. So I looked up all the necessary functions in the jQuery documentation and created a small script from them that can solve the task. With the help of a plugin HowTo here in the forum, I was then able to turn it into a plugin. That also worked in the end. Unfortunately, I then found out that the bug report form could no longer be sent. Obviously, the jQuery manipulation corrupts the form.
I'm at my wits end. Is there no clean and working solution to the problem? I only find inquiries about this everywhere, but nowhere a working solution.