* @package bug * @version $Id: view.html.php 4728 2013-05-03 06:14:34Z chencongzhi520@gmail.com $ * @link http://www.zentao.net */ ?> bug->confirmToStory);?> tab);?> id);?> branch);?> bug->noExecution);?> bug->noProject);?> session->bugList ? $app->session->bugList : inlink('browse', "productID=$bug->product");?> app->getViewType() == 'xhtml'):?>
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, 'method' => 'view', 'showDelete' => false));?> createLink('action', 'comment', "objectType=bug&objectID=$bug->id"); ?>
printExtendFields($bug, 'div', "position=left&inForm=0&inCell=1");?> app->getViewType() != 'xhtml'):?>
id"; $extraParams = "extras=bugID=$bug->id"; if($this->app->tab == 'project') $extraParams .= ",projectID={$bug->project}"; if($this->app->tab == '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"; ?>
deleted):?>
bug->buildOperateMenu($bug, 'view');?>
shadow)):?> type != 'normal'):?> 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, '', "data-app='qa'")) echo $module->name; if(isset($modulePath[$key + 1])) { $moduleTitle .= '/'; echo $lang->arrow; } } } $printModule = ob_get_contents(); ob_end_clean(); ?> '> bug->severityList as $severityKey => $severityValue) { if(!empty($severityKey) and (string)$severityKey != (string)$severityValue) { $hasCustomSeverity = true; break; } } ?>
bug->product;?> product", $product->name, '', "data-app='product'")) echo $product->name;?>
product->branch, $lang->product->branchName[$product->type]);?> product&branch=$bug->branch", $branchName)) echo $branchName;?>
bug->module;?>
bug->fromCase;?> case) echo html::a(helper::createLink('testcase', 'view', "caseID=$bug->case&version=$bug->caseVersion", '', true), " {$lang->bug->fromCase}$lang->colon$bug->case", '', isonlybody() ? '' : "data-toggle='modal' data-type='iframe' data-width='80%'");?>
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->severity;?> bug->severityList, $bug->severity, $bug->severity);?>
bug->pri;?> 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 helper::isZeroDate($bug->deadline) ? '' : $bug->deadline; if(isset($bug->delay)) printf($lang->bug->delayWarning, $bug->delay); ?>
bug->feedbackBy;?> feedbackBy;?>
bug->notifyEmail;?> notifyEmail;?>
bug->os;?> os);?>

" . zget($lang->bug->osList, $os) . "";?>

bug->browser;?> browser);?>

" . zget($lang->bug->browserList, $browser) . "";?>

bug->keywords;?> keywords;?>
bug->mailto;?> mailto)) { foreach(explode(',', str_replace(' ', '', $bug->mailto)) as $account) echo ' ' . zget($users, $account); } ?>
multiple)):?>
bug->project;?> project) echo html::a($this->createLink('project', 'view', "projectID=$bug->project"), $bug->projectName);?>
model) and $project->model == 'kanban') ? $lang->bug->kanban : $lang->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 and common::hasPriv('bug', 'confirmStoryChange')) { 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) { if(!$openedBuild) continue; 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, '', "title='{$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?>
case):?> toCases):?> toStory != 0):?> toTask != 0):?>
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%'") . '
'; } } ?>
bug->fromCase;?> createLink('testcase', 'view', "caseID=$bug->case&caseVersion=$bug->caseVersion", '', true), "#$bug->case $bug->caseTitle", '', "class='iframe' data-width='80%'");?>
bug->toCase;?> toCases as $caseID => $case) { echo '

' . html::a($this->createLink('testcase', 'view', "caseID=$caseID", '', true), $case, '', "class='iframe' data-width='80%'") . '

'; } ?>
bug->toStory;?> createLink('story', 'view', "storyID=$bug->toStory", '', true), "#$bug->toStory $bug->toStoryTitle", '', "class='iframe' data-width='80%'");?>
bug->toTask;?> createLink('task', 'view', "taskID=$bug->toTask", '', true), "#$bug->toTask $bug->toTaskTitle", '', "class='iframe' data-width='80%'");?>
bug->linkMR;?> linkMRTitles as $MRID => $linkMRTitle) { echo ($canViewMR ? html::a($this->createLink('mr', 'view', "MRID=$MRID"), "#$MRID $linkMRTitle") : "#$MRID $linkMRTitle") . '
'; } ?>
bug->linkCommit;?> revision, 0, 10); $commitTitle = $revision . ' ' . $commit->comment; echo "'; } ?>
printExtendFields($bug, 'div', "position=right&inForm=0&inCell=1");?>
app->getViewType() == 'xhtml'):?>