I want to oblige users of my database mantis to fill the field "Production version" during reporting.
This field is not a custom one but an original one field, and i don't know how to do.
Cordially,
How to set field "Product version" mandatory during report
Moderators: Developer, Contributor
Re: How to set field "Product version" mandatory during report
Want more plugins to customize Mantis?
=> http://deboutv.free.fr/mantis/
Mantis: 1.1.0, 1.1.0a2
PHP: 5.0.4
SQL: MySQL 5.0.19
OS: Linux
=> http://deboutv.free.fr/mantis/
Mantis: 1.1.0, 1.1.0a2
PHP: 5.0.4
SQL: MySQL 5.0.19
OS: Linux
Re: How to set field "Product version" mandatory during report
Thanks Deboutv.
All seems Ok.
Do you know the value used by Mantis for "OS Version" and "Plateform", because i would like to do the same thing.
I mean set these fields mandatory.
Cordially,
All seems Ok.
Do you know the value used by Mantis for "OS Version" and "Plateform", because i would like to do the same thing.
I mean set these fields mandatory.
Cordially,
Re: How to set field "Product version" mandatory during report
I found the name for other fiels.
Under /usr/share/mantis/www/bug_report.php
$t_bug_data = new BugData;
$t_bug_data->build
$t_bug_data->platform
$t_bug_data->os
$t_bug_data->os_build
$t_bug_data->version
$t_bug_data->profile_id
$t_bug_data->handler_id
$t_bug_data->view_state
$t_bug_data->category
$t_bug_data->reproducibility
$t_bug_data->severity
$t_bug_data->priority
$t_bug_data->summary
$t_bug_data->description
$t_bug_data->steps_to_reproduce
$t_bug_data->additional_information
Thanks one more times.
Under /usr/share/mantis/www/bug_report.php
$t_bug_data = new BugData;
$t_bug_data->build
$t_bug_data->platform
$t_bug_data->os
$t_bug_data->os_build
$t_bug_data->version
$t_bug_data->profile_id
$t_bug_data->handler_id
$t_bug_data->view_state
$t_bug_data->category
$t_bug_data->reproducibility
$t_bug_data->severity
$t_bug_data->priority
$t_bug_data->summary
$t_bug_data->description
$t_bug_data->steps_to_reproduce
$t_bug_data->additional_information
Thanks one more times.
Re: How to set field "Product version" mandatory during report
Hi,
I tried this, but got the following error:
Notice: Undefined index: 9000 in D:\rotter\Desktop\Webserver\Root\mantis-1.1.2\core\error_api.php on line 343
And the * isn't on the page so you see it is mandatory....how can I change this?
I tried this, but got the following error:
Notice: Undefined index: 9000 in D:\rotter\Desktop\Webserver\Root\mantis-1.1.2\core\error_api.php on line 343
And the * isn't on the page so you see it is mandatory....how can I change this?
Re: How to set field "Product version" mandatory during report
There are some notes here that might help you with this: http://www.mantisbt.org/forums/viewtopi ... 474#p14536Reindero wrote:Hi,
I tried this, but got the following error:
Notice: Undefined index: 9000 in D:\rotter\Desktop\Webserver\Root\mantis-1.1.2\core\error_api.php on line 343
And the * isn't on the page so you see it is mandatory....how can I change this?
Re: How to set field "Product version" mandatory during report
I made a plugin to build your own report page: http://deboutv.free.fr/mantis/plugin.ph ... n=MyReport
Want more plugins to customize Mantis?
=> http://deboutv.free.fr/mantis/
Mantis: 1.1.0, 1.1.0a2
PHP: 5.0.4
SQL: MySQL 5.0.19
OS: Linux
=> http://deboutv.free.fr/mantis/
Mantis: 1.1.0, 1.1.0a2
PHP: 5.0.4
SQL: MySQL 5.0.19
OS: Linux