|
From: Ken T. <ke...@us...> - 2003-07-25 02:50:11
|
Update of /cvsroot/phpbt/phpbt/admin
In directory sc8-pr-cvs1:/tmp/cvs-serv24962/admin
Modified Files:
Tag: phpbt-1_0
status.php
Log Message:
transfer
Index: status.php
===================================================================
RCS file: /cvsroot/phpbt/phpbt/admin/status.php,v
retrieving revision 1.29
retrieving revision 1.29.4.1
diff -u -r1.29 -r1.29.4.1
--- status.php 26 Aug 2002 18:11:13 -0000 1.29
+++ status.php 25 Jul 2003 02:50:08 -0000 1.29.4.1
@@ -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'));
|