View Issue Details

IDProjectCategoryView StatusLast Update
0011509mantisbtfilterspublic2012-10-22 15:54
Reporterjan78dro Assigned Todregad  
PriorityhighSeveritymajorReproducibilityalways
Status closedResolutionduplicate 
Product Version1.2.0rc2 
Summary0011509: It doesn't show the categories in the filters when there is only one project created
Description

Prerequisites:
Mantis with just one project
This project with several categories (at least one)

The project does not load well in Mantis in the view "View Issues". So, in the category filter when there is just one project in Mantis does not appear all the categories that are in the project. It just appear the general categories defined for all the projects.

Steps To Reproduce

Steps:

  1. Open a Mantis 1.2.0rc2 application which has just one project and this project has several categories.
  2. Login Mantis
  3. Go to "View Issues"
  4. In the filters press "Category" link

Results:

  1. Mantis opens Ok
  2. Login. OK
  3. View Issues. OK
  4. In the category combo box it only appears the general categories, not all the categories for the project.
Additional Information

We are using Mantis since 2006 in the diferent versions and upgrades. Now we are using in some projects the 1.2.0rc2 version.

This only happens when in Mantis there is only one project loaded. When there are more than one project appears the combo box for the projects and the categories load well for every project

Tagscategories, filter

Relationships

duplicate of 0010156 closeddaryn Categories "[any] / General". 
has duplicate 0012826 closedatrol Category drop down in FILTERS is empty 

Activities

jan78dro

jan78dro

2010-02-17 05:21

reporter   ~0024404

Add to steps:

  1. Go to "Report Issue"
  2. Go to "View Issues"
  3. In the filters press "Category" link

Add to results:

  1. Report Issues view opens ok
  2. View Issues opens ok
  3. Now all the categories load ok and appears in the combo box
datag

datag

2010-08-20 16:23

reporter   ~0026389

I can confirm this behavior with 1.2.2. It seems like the view is in "all projects"-mode instead of the specific "(single) project"-mode.

When creating another project, one can select the active project and the category-filter shows all project-related entries.

daryn

daryn

2010-12-23 13:47

reporter   ~0027687

This appears to be resolved. Please update to latest stable (1.2.4 as of now) and verify.

M.C.S.

M.C.S.

2011-02-28 07:19

reporter   ~0028318

In exactly this Mantis (currently 1.2.4) I have the same issue today. I want to filter by category, but I just see "General" there. Could this be some "lazy initialization" bug?

atrol

atrol

2011-02-28 15:19

developer   ~0028321

The issue is caused by a call to function helper_get_current_project() to determine the current project.
If there is just one project and no reported issue, the functione returns the value of "My Account" -> "Preferences" -> "Default Project" which is "All Projects" when a user is created.
As a workaround you can set your default project to the one project you created.

dregad

dregad

2012-10-10 12:51

developer   ~0033133

Last edited: 2012-10-10 12:51

This was fixed in 1.2.5