View Issue Details

IDProjectCategoryView StatusLast Update
0005013mantisbtbugtrackerpublic2005-04-18 10:42
Reportervboctor Assigned Tovboctor  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
Product Versiongit trunk 
Fixed in Version1.0.0a1 
Summary0005013: html_status_percentage_legend() generates notices
Description
  • Undefined "status" notice.
  • If the database doesn't contain issues that are in all statuses, then the function will generate a notice for the first unused notice. For example, undefined index 10.
  • The function stores all statuses for all bugs in an array, then counts them. This should be changed to count directly, rather than storing.
  • The function should use "echo" rather than "PRINT".
  • There is no point in ORDER BY status in the query.
  • It is preferred to omit the WHERE clause rather than using WHERE 1=1.
  • Some variables don't have the $t_ prefix although they are temporary local variables.
  • The function shouldn't leave a line before the percentage bar. This is up to the hosting page, depending on where the bar is placed. For example, if it is placed at the bottom, then we may want the line after it.
TagsNo tags attached.

Relationships

child of 0004937 closedvboctor Mantis 1.0.0a1 Release 

Activities

There are no notes attached to this issue.