View Issue Details

IDProjectCategoryView StatusLast Update
0005438mantisbtbugtrackerpublic2005-04-18 10:17
Reporterurkle Assigned Tothraxisp  
PrioritynormalSeverityminorReproducibilitysometimes
Status closedResolutionfixed 
Product Versiongit trunk 
Summary0005438: *_bug_threshold set to an array in the new DB based configuration
Description

An array can be stored in the config variable in the database if not all thresholds are checked above the lowest.

Steps To Reproduce

in my mantis install of 0.19.2 I have a new access level of logger for a logging user which logs mantis communication to a list. When I tested a copy of the existing DB on the CVS from yesterday, after I "updated" the configuration in the "Manage configuration" screen for workflow threasholds, arrays were stored in the database for the handle, assign, move, delete, and reopen threasholds as the logger user is unchecked for those. (so it contained 55,70,90). This caused several queries, namely on the advanced filter page to fail and spit the SQL query with "Array" in the SQL where a access level threshold should be.

If I go back to the "Manage configuration" and check the logger for those a integer of value "50" is stored instead and the site works.

Additional Information

I would figure that the "Manager configuration" screen should have a "drop box" or options buttons of what the lowest threshold should be instead of a series of check boxes. Also the code seems to be confused by the fact that my "50:logger" is at the end of the g_access_levels_enum_string instead of in the middle. (as 50 is less than 55 and thus 55 should be stored in the DB)

TagsNo tags attached.

Relationships

child of 0004937 closedvboctor Mantis 1.0.0a1 Release 

Activities

urkle

urkle

2005-04-15 02:07

reporter   ~0009819

moving my 50:logger to before 55:developer in the g_access_levels_enum_string in config_inc.php works around this issue.

thraxisp

thraxisp

2005-04-15 17:20

reporter   ~0009821

There are two issues here:
1) The threshold setting logic should sort the access levels before determining whether to use an array or integer.
2) There are some places in filter_api, project_api and changelog that don't use the new thresholds properly.

thraxisp

thraxisp

2005-04-15 18:14

reporter   ~0009822

Fixed in CVS.

The relevant modules are:
core/filter_api.php -> 1.99
core/project_api.php ->1.70
core/utility_api.php ->1.19
manage_config_work_threshold_set.php -> 1.5