* Clear unused unset bug typeList codes.
This commit is contained in:
@@ -64,12 +64,6 @@
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
/* Remove the unused types. */
|
||||
unset($lang->bug->typeList['interface']);
|
||||
unset($lang->bug->typeList['designchange']);
|
||||
unset($lang->bug->typeList['newfeature']);
|
||||
unset($lang->bug->typeList['trackthings']);
|
||||
|
||||
$moduleOptionMenu += array('ditto' => $lang->bug->ditto);
|
||||
$projects += array('ditto' => $lang->bug->ditto);
|
||||
$lang->bug->typeList += array('ditto' => $lang->bug->ditto);
|
||||
|
||||
@@ -83,14 +83,6 @@
|
||||
$branches = array('ditto' => $this->lang->story->ditto) + $branches;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* 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 != 'interface') unset($typeList['interface']);
|
||||
if($bug->type != 'designchange') unset($typeList['designchange']);
|
||||
if($bug->type != 'newfeature') unset($typeList['newfeature']);
|
||||
if($bug->type != 'trackthings') unset($typeList['trackthings']);
|
||||
?>
|
||||
<tr>
|
||||
<td><?php echo $bugID . html::hidden("bugIDList[$bugID]", $bugID);?></td>
|
||||
|
||||
@@ -69,14 +69,7 @@ js::set('flow', $config->global->flow);
|
||||
<?php $showBrowser = strpos(",$showFields,", ',browser,') !== false;?>
|
||||
<td>
|
||||
<div class='input-group' id='bugTypeInputGroup'>
|
||||
<?php
|
||||
/* Remove the unused types. */
|
||||
unset($lang->bug->typeList['interface']);
|
||||
unset($lang->bug->typeList['designchange']);
|
||||
unset($lang->bug->typeList['newfeature']);
|
||||
unset($lang->bug->typeList['trackthings']);
|
||||
echo html::select('type', $lang->bug->typeList, $type, "class='form-control'");
|
||||
?>
|
||||
<?php echo html::select('type', $lang->bug->typeList, $type, "class='form-control'");?>
|
||||
<?php if($showOS):?>
|
||||
<span class='input-group-addon fix-border'><?php echo $lang->bug->os?></span>
|
||||
<?php echo html::select('os', $lang->bug->osList, $os, "class='form-control'");?>
|
||||
@@ -126,14 +119,7 @@ js::set('flow', $config->global->flow);
|
||||
<td>
|
||||
<div class='table-row'>
|
||||
<div class='table-col' id='typeBox'>
|
||||
<?php
|
||||
/* Remove the unused types. */
|
||||
unset($lang->bug->typeList['interface']);
|
||||
unset($lang->bug->typeList['designchange']);
|
||||
unset($lang->bug->typeList['newfeature']);
|
||||
unset($lang->bug->typeList['trackthings']);
|
||||
echo html::select('type', $lang->bug->typeList, $type, "class='form-control chosen'");
|
||||
?>
|
||||
<?php echo html::select('type', $lang->bug->typeList, $type, "class='form-control chosen'");?>
|
||||
</div>
|
||||
<?php if($showOS):?>
|
||||
<div class='table-col' id='osBox'>
|
||||
|
||||
@@ -122,19 +122,7 @@ js::set('oldResolvedBuild' , $bug->resolvedBuild);
|
||||
<?php endif;?>
|
||||
<tr>
|
||||
<th><?php echo $lang->bug->type;?></th>
|
||||
<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 != 'interface') unset($lang->bug->typeList['interface']);
|
||||
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 chosen'");
|
||||
?>
|
||||
</td>
|
||||
<td><?php echo html::select('type', $lang->bug->typeList, $bug->type, "class='form-control chosen'"); ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><?php echo $lang->bug->severity;?></th>
|
||||
|
||||
Reference in New Issue
Block a user