View Issue Details

IDProjectCategoryView StatusLast Update
0011921mantisbtfeaturepublic2012-04-24 02:55
Reporterwatergad Assigned Todregad  
PrioritynormalSeverityfeatureReproducibilityN/A
Status closedResolutionduplicate 
Summary0011921: Autoselect category if only one exists
Description

Why not to pre-select category on the bug_report page if only the one category exists?

print_api.php
print_category_option_list()

Now:


foreach( $cat_arr as $t_category_row ) {
...

Tweak:


$cnt = count($cat_arr);
if ($cnt == 1)
$p_category_id = $cat_arr[0]['id'];
foreach( $cat_arr as $t_category_row ) {
...

Additional Information

Maybe it should consider allow_no_category option.

TagsNo tags attached.

Relationships

duplicate of 0008582 assigneddregad Default Category for Project / Global default Category 

Activities

watergad

watergad

2010-05-28 11:41

reporter   ~0025622

Another idea is to make category radiobutton "default category" on the manage project page. Selected category will be preset by default.