* set severity and type's default value.

This commit is contained in:
wangchunsheng
2011-03-10 05:51:29 +00:00
parent 6ad5eaa5d3
commit cb1f4422ef
+3 -1
View File
@@ -296,6 +296,8 @@ class bug extends control
$assignedTo = '';
$mailto = '';
$keywords = '';
$severity = 3;
$type = 'codeerror';
/* Parse the extras. */
$extras = str_replace(array(',', ' '), array('&', ''), $extras);
@@ -316,7 +318,7 @@ class bug extends control
$storyID = $bug->story;
$buildID = $bug->openedBuild;
$severity = $bug->severity;
$type = $bug->type;
$type = $bug->type;
}
/* If projectID is setted, get builds and stories of this project. */