Dear,
I added a new field when reporting a new bug, which fetches data from another table. So far no problem, but I am not able to make this new field be added in the table "mantis_bug_table".
Which file is responsible for inserting field data in the mantis_bug_table table?
I created one more column in this table, but no data is saved.
Please can you give a tip only?
Files I edited, attached prints.
New field in bug reporting
Moderators: Developer, Contributor
New field in bug reporting
- Attachments
-
- bug_report_page.php.png (25.98 KiB) Viewed 7029 times
-
- bug_report.php.png (5.61 KiB) Viewed 7029 times
-
- bug_api.php.png (51.13 KiB) Viewed 7029 times
Re: New field in bug reporting
Rather than changing standard mantis code, you could use the custom field feature.
This works out of the box
This works out of the box
Re: New field in bug reporting
I already use this feature. But for this case, I need this field to fetch data from another table that will be fed later via register.
Re: New field in bug reporting
This may become a cumbersome process, In such cases I prefer to create a plugin which allows yoo to stay away from customizing standard code.
Re: New field in bug reporting
After much insistence, I found out where a new field added is recorded in the bank. I am sharing below the files needed for a new field to be written to the database.
bug_report_page.php
bug_report.php
bug_api.php
bug_view_inc.php
core / commands / IssueAddCommand.php
email_api.php -> add field in email notification
If you include a new field on the report page, and add the field to all the above files correctly, the field will work perfectly.
The challenge now is to add this new field to the filters.
I accept tips
bug_report_page.php
bug_report.php
bug_api.php
bug_view_inc.php
core / commands / IssueAddCommand.php
email_api.php -> add field in email notification
If you include a new field on the report page, and add the field to all the above files correctly, the field will work perfectly.
The challenge now is to add this new field to the filters.
I accept tips
-
- Posts: 4
- Joined: 15 Oct 2019, 05:43
Re: New field in bug reporting
You can use the custom field feature