View Issue Details

IDProjectCategoryView StatusLast Update
0010156mantisbtfilterspublic2012-10-10 12:51
Reporteralban_peignier Assigned Todaryn  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
Product Version1.2.0a3 
Target Version1.2.5Fixed in Version1.2.5 
Summary0010156: Categories "[any] / General".
Description

For some of our users, after a upgrade from a 1.1.1, the categorie select in the filter view doesn't provide the projects categories but only : "[any]" and "General" ..

Mantis loads the categories from the project 0 in the database (according to mysql log) :

SELECT DISTINCT name FROM mantis_category_table
WHERE project_id IN ( 0 )
ORDER BY name

Workaround: define a default project in the user preferences.

TagsNo tags attached.

Relationships

has duplicate 0011509 closeddregad It doesn't show the categories in the filters when there is only one project created 

Activities

BAMaustin

BAMaustin

2009-04-03 12:03

reporter   ~0021390

This appears to be a list initialization problem.

Once the user visits the Report Issue page, the View Issues category list will remain fully populated until the user does a Logout.

flintg

flintg

2010-07-28 17:35

reporter   ~0026156

I was able to reproduce the problem (and verify the workaround) with a "reporter" level user, but "developer" level users appear to be immune to the issue.

MantisBT: 1.2.1
PHP: 5.3.3
SQL: MySQL 5.1.48
Server: Apache 2.2.15
OS: Server 2008 Standard SP2 x64

daryn

daryn

2010-12-23 13:01

reporter   ~0027685

Populate the list according to user permission and configuration. Also prepared for future templating by moving the data retrieval out of the print function.

Related Changesets

MantisBT: master 011050bd

2010-12-23 12:32

daryn


Details Diff
Fix Bug 0010156: Categories "[any] / General". Move data retrieval into new category
api function category_get_filter_list. Use existing api functions to properly
populate the list based on configured project/category inheritance. The print api
function now handles only display functionality. It sorts and prints the select list.
The print function will eventually be removed in favor of a view. This separation
prepares for that.
Affected Issues
0010156
mod - core/print_api.php Diff File
mod - core/category_api.php Diff File

MantisBT: master-1.2.x 514d5b6f

2010-12-23 12:43

daryn


Details Diff
Fix Bug 0010156: Categories "[any] / General". Move data retrieval into new category
api function category_get_filter_list. Use existing api functions to properly
populate the list based on configured project/category inheritance. The print api
function now handles only display functionality. It sorts and prints the select list.
The print function will eventually be removed in favor of a view. This separation
prepares for that.
Affected Issues
0010156
mod - core/print_api.php Diff File
mod - core/category_api.php Diff File