Add Classification field

General discussion of Mantis.

Moderators: Developer, Contributor

Post Reply
HomesicK
Posts: 21
Joined: 14 Oct 2010, 09:44

Add Classification field

Post by HomesicK »

Dear All

Reference to the subject I would like to ask if I could add classification field in "Report issue Page" this means when the user wanna report an issue he/she should select what is the classification of the bug (eg: Design, buisness , technical ..etc) that means to classify the issue itself.

So please help how could I add such filed in the mantis tool.

Thanks,

My Mantis version is : 1.2.4
PHP version 5.2.6
Mantis: 1.2.4
PHP: 5.2.6
SQL: MySQL 5.0.51a
atrol
Site Admin
Posts: 8536
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: Add Classification field

Post by atrol »

Use "Manage" -> "Manage Custom Fields" and create a field of type enum
http://docs.mantisbt.org/master/en/admi ... STOMFIELDS
Please use Search before posting and read the Manual
HomesicK
Posts: 21
Joined: 14 Oct 2010, 09:44

Re: Add Classification field

Post by HomesicK »

My friend How r u ,,

Do u remember me ,, am the one who do not trust his developers :P

Any ways, thx very much for your reply

I did add a custom filed ,, but how could I sort all the fields now ,, for example the custom field be first then the severity then the priority ...etc

Thanks in advance :)
Mantis: 1.2.4
PHP: 5.2.6
SQL: MySQL 5.0.51a
atrol
Site Admin
Posts: 8536
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: Add Classification field

Post by atrol »

HomesicK wrote: Do u remember me ,, am the one who do not trust his developers :P
No chance to forget you!

There is no customization option for this.
At the moment it's hardcoded that the custom fields appear below the standard fields when reporting issues.
Someone provided a patch to place the fields above, but the patch is for older versions and might not work with current version.
http://www.mantisbt.org/bugs/view.php?id=11385

If you would trust at least one of your developers, maybe he could tweak the source code.

Future versions of MantisBT will support such customizing without changing the source code, but it's a long way to go.
Please use Search before posting and read the Manual
HomesicK
Posts: 21
Joined: 14 Oct 2010, 09:44

Re: Add Classification field

Post by HomesicK »

Thanks my friend for your kind help :)

I did it by changing the code in the bug_report_page.php page :D
Mantis: 1.2.4
PHP: 5.2.6
SQL: MySQL 5.0.51a
Post Reply