Page 1 of 1

Setting the default category

Posted: 11 Dec 2008, 17:10
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!

Re: Setting the default category

Posted: 09 Mar 2010, 12:59
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;

Re: Setting the default category

Posted: 09 Mar 2010, 14:29
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

Re: Setting the default category

Posted: 25 Mar 2014, 12:36
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

Re: Setting the default category

Posted: 25 Mar 2014, 18:14
by atrol