|
From: Benjamin C. <bc...@us...> - 2002-01-26 17:19:22
|
Update of /cvsroot/phpbt/phpbt
In directory usw-pr-cvs1:/tmp/cvs-serv23002
Modified Files:
bug.php
Log Message:
Auto-promote a bug to New if promotions by voting is disabled
Index: bug.php
===================================================================
RCS file: /cvsroot/phpbt/phpbt/bug.php,v
retrieving revision 1.75
retrieving revision 1.76
diff -u -r1.75 -r1.76
--- bug.php 2002/01/26 14:20:40 1.75
+++ bug.php 2002/01/26 17:19:19 1.76
@@ -436,7 +436,13 @@
$status = $q->grab_field("select status_id from ".TBL_STATUS." where status_name = 'Assigned'");
} else {
$owner = 0;
- $status = $q->grab_field("select status_id from ".TBL_STATUS." where status_name = 'Unconfirmed'");
+ // If we aren't using voting to promote, then auto-promote to New
+ if (PROMOTE_VOTES) {
+ $stat_to_assign = 'Unconfirmed';
+ } else {
+ $stat_to_assign = 'New';
+ }
+ $status = $q->grab_field("select status_id from ".TBL_STATUS." where status_name = '$stat_to_assign'");
}
$q->query("insert into ".TBL_BUG." (bug_id, title, description, url,
severity_id, priority, status_id, assigned_to, created_by, created_date,
|