How to set field "Product version" mandatory during report

Get help from other users here.

Moderators: Developer, Contributor

Post Reply
scouny
Posts: 3
Joined: 02 Jul 2008, 14:20

How to set field "Product version" mandatory during report

Post by scouny »

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,
deboutv
Posts: 507
Joined: 15 Jan 2007, 14:31
Location: La Ciotat, FRANCE
Contact:

Re: How to set field "Product version" mandatory during report

Post by deboutv »

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
scouny
Posts: 3
Joined: 02 Jul 2008, 14:20

Re: How to set field "Product version" mandatory during report

Post by scouny »

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,
scouny
Posts: 3
Joined: 02 Jul 2008, 14:20

Re: How to set field "Product version" mandatory during report

Post by scouny »

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.
Reindero
Posts: 26
Joined: 07 Jul 2008, 12:05

Re: How to set field "Product version" mandatory during report

Post by Reindero »

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?
sckerr
Posts: 5
Joined: 15 Aug 2008, 05:35

Re: How to set field "Product version" mandatory during report

Post by sckerr »

Reindero 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?
There are some notes here that might help you with this: http://www.mantisbt.org/forums/viewtopi ... 474#p14536
deboutv
Posts: 507
Joined: 15 Jan 2007, 14:31
Location: La Ciotat, FRANCE
Contact:

Re: How to set field "Product version" mandatory during report

Post by deboutv »

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
Post Reply