Setting the default category

Get help from other users here.

Moderators: Developer, Contributor

Post Reply
neilj
Posts: 1
Joined: 11 Dec 2008, 17:00

Setting the default category

Post by neilj »

I hope there is a simple way to do this: I'd like to have the default category be something other than "(select)". Right now, we have defined a single category in each project and would like that to be selected by default. I'm ok with doing this at a global level or at a project-by-project level. Can this be done through one of the Management screens, or can it only be done by modifying source? I'm ok with either option. Thanks!
rattkin
Posts: 4
Joined: 21 Dec 2007, 21:40

Re: Setting the default category

Post by rattkin »

there should be an option for this.

I found this: $g_default_bug_category to specify the default category
here: http://www.mantisbt.org/bugs/view.php?id=4102

so i tried setting this in config_inc.php:
$g_default_bug_category = 'default';

It does nothing. What am i doing wrong?

there is this option, which works for me:
$g_allow_no_category = ON;
Buga
Posts: 74
Joined: 31 Mar 2008, 12:10

Re: Setting the default category

Post by Buga »

my guess would be that you need to define the id of the category. You cna either find it in the html code of the select element or you search directly in the category table of mantis
markosaurus
Posts: 1
Joined: 25 Mar 2014, 12:34

Re: Setting the default category

Post by markosaurus »

I'm on version 1.2.15.

I tried setting;

$g_default_bug_category = 2;//default bug category id

Nothing happens...anyone know where I might be going wrong?

TIA

Mark
atrol
Site Admin
Posts: 8375
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: Setting the default category

Post by atrol »

Please use Search before posting and read the Manual
Post Reply