* fix a bug for #648.

This commit is contained in:
wangyidong
2014-11-27 06:07:02 +00:00
parent 35ca454942
commit 4da87b6926
5 changed files with 29 additions and 24 deletions
+12 -1
View File
@@ -88,7 +88,18 @@ js::set('oldResolvedBuild' , $bug->resolvedBuild);
</tr>
<tr>
<th><?php echo $lang->bug->type;?></th>
<td><?php echo html::select('type', $lang->bug->typeList, $bug->type, "class='form-control'");?></td>
<td>
<?php
/**
* Remove designchange, newfeature, trackings from the typeList, because should be tracked in story or task.
* These thress types if upgrade from bugfree2.x.
*/
if($bug->type != 'designchange') unset($lang->bug->typeList['designchange']);
if($bug->type != 'newfeature') unset($lang->bug->typeList['newfeature']);
if($bug->type != 'trackthings') unset($lang->bug->typeList['trackthings']);
echo html::select('type', $lang->bug->typeList, $bug->type, "class='form-control'");
?>
</td>
</tr>
<tr>
<th><?php echo $lang->bug->severity;?></th>