* @package bug
* @version $Id: view.html.php 4728 2013-05-03 06:14:34Z chencongzhi520@gmail.com $
* @link http://www.zentao.net
*/
?>
session->bugList ? $app->session->bugList : inlink('browse', "productID=$bug->product");?>
app->openApp) !== false ? $this->app->openApp : 'qa';?>
app->openApp != 'product') common::printLink('bug', 'create', "productID={$bug->product}&branch={$bug->branch}&extra=moduleID={$bug->module},projectID={$bug->project},executionID={$bug->execution}", " " . $lang->bug->create, '', "class='btn btn-primary' data-app='$openApp'"); ?>
bug->legendSteps;?>
bug->tplStep));
$steps = str_replace('
' . $tplStep, '
' . $tplStep . '
', $bug->steps);
$tplResult = strip_tags(trim($lang->bug->tplResult));
$steps = str_replace('
' . $tplResult, '
' . $tplResult . '
', $steps);
$tplExpect = strip_tags(trim($lang->bug->tplExpect));
$steps = str_replace('
' . $tplExpect, '
' . $tplExpect . '
', $steps);
$steps = str_replace('
', '', $steps);
echo $steps;
?>
fetch('file', 'printFiles', array('files' => $bug->files, 'fieldset' => 'true', 'object' => $bug));?>
createLink('action', 'comment', "objectType=bug&objectID=$bug->id");
?>
printExtendFields($bug, 'div', "position=left&inForm=0&inCell=1");?>
id";
$extraParams = "extras=bugID=$bug->id";
if($this->app->openApp == 'project') $extraParams .= ",projectID={$bug->project}";
if($this->app->openApp == 'execution') $extraParams .= ",executionID={$bug->execution}";
$copyParams = "productID=$productID&branch=$bug->branch&$extraParams";
$convertParams = "productID=$productID&branch=$bug->branch&moduleID=0&from=bug&bugID=$bug->id";
?>
| bug->product;?> |
product", $product->name)) echo $product->name;?> |
type != 'normal'):?>
| product->branch, $lang->product->branchName[$product->type]);?> |
product&branch=$bug->branch", $branchName)) echo $branchName;?> |
| bug->module;?> |
branch and isset($branches[$bugModule->branch]))
{
$moduleTitle .= $branches[$bugModule->branch] . '/';
echo $branches[$bugModule->branch] . $lang->arrow;
}
foreach($modulePath as $key => $module)
{
$moduleTitle .= $module->name;
if(!common::printLink('bug', 'browse', "productID=$bug->product&branch=$module->branch&browseType=byModule¶m=$module->id", $module->name)) echo $module->name;
if(isset($modulePath[$key + 1]))
{
$moduleTitle .= '/';
echo $lang->arrow;
}
}
}
$printModule = ob_get_contents();
ob_end_clean();
?>
|
| bug->productplan;?> |
plan or !common::printLink('productplan', 'view', "planID=$bug->plan&type=bug", $bug->planName)) echo $bug->planName;?> |
| bug->type;?> |
bug->typeList[$bug->type])) echo $lang->bug->typeList[$bug->type]; else echo $bug->type;?> |
bug->severityList as $severityKey => $severityValue)
{
if(!empty($severityKey) and (string)$severityKey != (string)$severityValue)
{
$hasCustomSeverity = true;
break;
}
}
?>
| bug->severity;?> |
bug->severityList, $bug->severity, $bug->severity);?>
|
| bug->pri;?> |
pri;?>' title='bug->priList, $bug->pri);?>'>bug->priList, $bug->pri)?> |
| bug->status;?> |
processStatus('bug', $bug);?> |
| bug->activatedCount;?> |
activatedCount;?> |
| bug->activatedDate;?> |
activatedDate;?> |
| bug->confirmed;?> |
bug->confirmedList[$bug->confirmed];?> |
| bug->lblAssignedTo;?> |
assignedTo) echo zget($users, $bug->assignedTo) . $lang->at . $bug->assignedDate;?> |
| bug->deadline;?> |
deadline) echo $bug->deadline;
if(isset($bug->delay)) printf($lang->bug->delayWarning, $bug->delay);
?>
|
| bug->os;?> |
bug->osList[$bug->os];?> |
| bug->browser;?> |
bug->browserList[$bug->browser];?> |
| bug->keywords;?> |
keywords;?> |
| bug->mailto;?> |
mailto)); foreach($mailto as $account) echo ' ' . zget($users, $account); ?> |
systemMode == 'new'):?>
| bug->project;?> |
project) echo html::a($this->createLink('project', 'view', "projectID=$bug->project"), $bug->projectName);?> |
| bug->execution;?> |
execution) echo html::a($this->createLink('execution', 'browse', "executionID=$bug->execution"), $bug->executionName);?> |
| bug->story;?> |
story) echo html::a($this->createLink('story', 'view', "storyID=$bug->story", '', true), "#$bug->story $bug->storyTitle", '', "class='iframe' data-width='80%'");
if($bug->storyStatus == 'active' and $bug->latestStoryVersion > $bug->storyVersion)
{
echo "({$lang->story->changed} ";
echo html::a($this->createLink('bug', 'confirmStoryChange', "bugID=$bug->id"), $lang->confirm, 'hiddenwin');
echo ")";
}
?>
|
| bug->task;?> |
task) echo html::a($this->createLink('task', 'view', "taskID=$bug->task", '', true), $bug->taskName, '', "class='iframe' data-width='80%'");?> |
| bug->openedBy;?> |
openedBy) . $lang->at . $bug->openedDate;?> |
| bug->openedBuild;?> |
openedBuild)
{
$openedBuilds = explode(',', $bug->openedBuild);
foreach($openedBuilds as $openedBuild) isset($builds[$openedBuild]) ? print($builds[$openedBuild] . ' ') : print($openedBuild . ' ');
}
else
{
echo $bug->openedBuild;
}
?>
|
| bug->lblResolved;?> |
resolvedBy) echo zget($users, $bug->resolvedBy) . $lang->at . $bug->resolvedDate;?> |
| bug->resolvedBuild;?> |
resolvedBuild])) echo $builds[$bug->resolvedBuild]; else echo $bug->resolvedBuild;?> |
| bug->resolution;?> |
bug->resolutionList[$bug->resolution]) ? $lang->bug->resolutionList[$bug->resolution] : $bug->resolution;
if(isset($bug->duplicateBugTitle)) echo " #$bug->duplicateBug:" . html::a($this->createLink('bug', 'view', "bugID=$bug->duplicateBug", '', true), $bug->duplicateBugTitle, '', "class='iframe' data-width='80%'");
?>
|
| bug->closedBy;?> |
closedBy) echo zget($users, $bug->closedBy) . $lang->at . $bug->closedDate;?> |
| bug->lblLastEdited;?> |
lastEditedBy) echo zget($users, $bug->lastEditedBy, $bug->lastEditedBy) . $lang->at . $bug->lastEditedDate?> |
| bug->linkBug;?> |
linkBugTitles))
{
foreach($bug->linkBugTitles as $linkBugID => $linkBugTitle)
{
echo html::a($this->createLink('bug', 'view', "bugID=$linkBugID", '', true), "#$linkBugID $linkBugTitle", '', "class='iframe' data-width='80%'") . ' ';
}
}
?>
|
case):?>
| bug->fromCase;?> |
createLink('testcase', 'view', "caseID=$bug->case&caseVersion=" . ($bug->testtask ? "&from=testtask&taskID={$bug->testtask}" : ''), '', true), "#$bug->case $bug->caseTitle", '', "class='iframe' data-width='80%'");?> |
toCases):?>
| bug->toCase;?> |
toCases as $caseID => $case)
{
echo ' ' . html::a($this->createLink('testcase', 'view', "caseID=$caseID", '', true), $case, '', "class='iframe' data-width='80%'") . ' ';
}
?>
|
toStory != 0):?>
| bug->toStory;?> |
createLink('story', 'view', "storyID=$bug->toStory", '', true), "#$bug->toStory $bug->toStoryTitle", '', "class='iframe' data-width='80%'");?> |
toTask != 0):?>
| bug->toTask;?> |
createLink('task', 'view', "taskID=$bug->toTask", '', true), "#$bug->toTask $bug->toTaskTitle", '', "class='iframe' data-width='80%'");?> |
printExtendFields($bug, 'div', "position=right&inForm=0&inCell=1");?>