|
From: Ulf E. <ulf...@us...> - 2005-08-22 19:44:57
|
Update of /cvsroot/phpbt/phpbt/inc In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7041/inc Modified Files: functions.php Log Message: RFE #759250 - Table Driven Priorities. Index: functions.php =================================================================== RCS file: /cvsroot/phpbt/phpbt/inc/functions.php,v retrieving revision 1.54 retrieving revision 1.55 diff -u -r1.54 -r1.55 --- functions.php 20 Jul 2005 18:47:25 -0000 1.54 +++ functions.php 22 Aug 2005 19:44:46 -0000 1.55 @@ -49,14 +49,6 @@ $t->render('error.html', ''); } -$select['priority'] = array( - 1 => '1 - Low', - 2 => '2', - 3 => '3 - Medium', - 4 => '4', - 5 => '5 - High' - ); - /// /// Build a select box with the item matching $value selected function build_select($box, $selected = '', $project = 0) { @@ -70,6 +62,7 @@ 'status' => TBL_STATUS, 'resolution' => TBL_RESOLUTION, 'severity' => TBL_SEVERITY, + 'priority' => TBL_PRIORITY, 'version' => TBL_VERSION, 'database' => TBL_DATABASE, 'site' => TBL_SITE @@ -83,6 +76,7 @@ $queries = array( 'group' => $querystart.' where group_name <> \'User\' order by group_name', 'severity' => $querystart.$querymid, + 'priority' => $querystart.$querymid, 'site' => $querystart.$querymid, 'status' => $querystart.$querymid, 'resolution' => $querystart.$querymid, @@ -133,6 +127,7 @@ break; case 'database': $text = '<option value="0">None</option>'; case 'severity': + case 'priority': case 'status': case 'resolution': case 'project': |