|
From: Ken T. <ke...@us...> - 2003-07-24 04:51:04
|
Update of /cvsroot/phpbt/phpbt/admin
In directory sc8-pr-cvs1:/tmp/cvs-serv1772/admin
Modified Files:
status.php
Log Message:
Multiple statuses can now be set as 'open' or 'closed' -- no longer will
just BUG_CLOSED show up in most-recently-closed-bugs, etc.
Admin ui allow reassigning open/closed bit to statuses. mysql DB
touched, rolling to version 4.
Fixed install.php DB_VERSIONing problem.
Index: status.php
===================================================================
RCS file: /cvsroot/phpbt/phpbt/admin/status.php,v
retrieving revision 1.29
retrieving revision 1.30
diff -u -r1.29 -r1.30
--- status.php 26 Aug 2002 18:11:13 -0000 1.29
+++ status.php 24 Jul 2003 04:47:13 -0000 1.30
@@ -58,14 +58,16 @@
if (empty($sort_order)) $sort_order = 0;
if (!$statusid) {
$db->query("insert into ".TBL_STATUS.
- " (status_id, status_name, status_desc, sort_order) values (".
+ " (status_id, status_name, status_desc, bug_open, sort_order) values (".
$db->nextId(TBL_STATUS).', '.
$db->quote(stripslashes($status_name)).', '.
- $db->quote(stripslashes($status_desc)).", '$sort_order')");
+ $db->quote(stripslashes($status_desc)).', '.
+ (int)$bug_open.", '$sort_order')");
} else {
$db->query("update ".TBL_STATUS.
" set status_name = ".$db->quote(stripslashes($status_name)).
', status_desc = '.$db->quote(stripslashes($status_desc)).
+ ', bug_open = '.(int)$bug_open.
", sort_order = $sort_order where status_id = $statusid");
}
if ($use_js) {
@@ -84,6 +86,7 @@
" where status_id = '$statusid'"));
} else {
$t->assign($_pv);
+ $t->assign(array('bug_open' => 1)); // new bugs def. open :)
}
$t->assign('error', $error);
$t->wrap('admin/status-edit.html', ($statusid ? 'editstatus' : 'addstatus'));
|