View Issue Details

IDProjectCategoryView StatusLast Update
0008500mantisbtotherpublic2007-10-24 02:27
Reportervboctor Assigned Tovboctor  
PrioritynormalSeverityminorReproducibilityhave not tried
Status closedResolutionfixed 
Product Version1.1.0rc1 
Target Version1.1.0rc2Fixed in Version1.1.0rc2 
Summary0008500: Empty entry in "Category" drop down
Description

In 1.1.0rc2, there is the "(select)" entry that should force the user to select a category. However, the selected entry by default is an empty entry. The correct behavior is not to have such an empty category and select the "(select)" entry.

See the following forum thread:
http://www.mantisbt.org/forums//viewtopic.php?t=4089

TagsNo tags attached.

Relationships

has duplicate 0008469 closedvboctor print_category_option_list adds an empty default_bug_category 

Activities

vboctor

vboctor

2007-10-22 22:39

manager   ~0015955

This is a confirmed since it occurs on this site.

vboctor

vboctor

2007-10-24 01:31

manager   ~0015962

In core/print_api.php: print_category_option_list()

Replace:
if ( !in_array( $p_category, $cat_arr ) ) {

With
if ( !is_blank( $p_category ) && !in_array( $p_category, $cat_arr ) ) {