* Finish task#9099.
This commit is contained in:
@@ -92,8 +92,9 @@ $lang->search->modules['story'] = 'Story';
|
||||
$lang->search->modules['issue'] = 'Issue';
|
||||
$lang->search->modules['risk'] = 'Risk';
|
||||
|
||||
$lang->search->objecttypelist['story'] = $lang->srcommon;
|
||||
$lang->search->objecttypelist['requirement'] = $lang->urcommon;
|
||||
$lang->search->objecttypelist['stage'] = $lang->execution->stage;
|
||||
$lang->search->objecttypelist['sprint'] = $lang->execution->sprint;
|
||||
$lang->search->objectTypeList['sprint'] = $lang->executionCommon;
|
||||
$lang->search->objectTypeList['story'] = $lang->SRCommon;
|
||||
$lang->search->objectTypeList['requirement'] = $lang->URCommon;
|
||||
$lang->search->objectTypeList['stage'] = $lang->execution->stage;
|
||||
$lang->search->objectTypeList['sprint'] = $lang->executionCommon;
|
||||
$lang->search->objectTypeList['commonIssue'] = 'Issue';
|
||||
$lang->search->objectTypeList['stakeholderIssue'] = 'Stakeholder Issue';
|
||||
|
||||
@@ -92,7 +92,9 @@ $lang->search->modules['story'] = 'Story';
|
||||
$lang->search->modules['issue'] = 'Issue';
|
||||
$lang->search->modules['risk'] = 'Risk';
|
||||
|
||||
$lang->search->objecttypelist['story'] = $lang->srcommon;
|
||||
$lang->search->objecttypelist['requirement'] = $lang->urcommon;
|
||||
$lang->search->objecttypelist['stage'] = $lang->execution->stage;
|
||||
$lang->search->objectTypeList['sprint'] = $lang->executionCommon;
|
||||
$lang->search->objectTypeList['story'] = $lang->SRCommon;
|
||||
$lang->search->objectTypeList['requirement'] = $lang->URCommon;
|
||||
$lang->search->objectTypeList['stage'] = $lang->execution->stage;
|
||||
$lang->search->objectTypeList['sprint'] = $lang->executionCommon;
|
||||
$lang->search->objectTypeList['commonIssue'] = 'Issue';
|
||||
$lang->search->objectTypeList['stakeholderIssue'] = 'Stakeholder Issue';
|
||||
|
||||
@@ -92,7 +92,9 @@ $lang->search->modules['story'] = 'Story';
|
||||
$lang->search->modules['issue'] = 'Issue';
|
||||
$lang->search->modules['risk'] = 'Risk';
|
||||
|
||||
$lang->search->objecttypelist['story'] = $lang->srcommon;
|
||||
$lang->search->objecttypelist['requirement'] = $lang->urcommon;
|
||||
$lang->search->objecttypelist['stage'] = $lang->execution->stage;
|
||||
$lang->search->objectTypeList['sprint'] = $lang->executionCommon;
|
||||
$lang->search->objectTypeList['story'] = $lang->SRCommon;
|
||||
$lang->search->objectTypeList['requirement'] = $lang->URCommon;
|
||||
$lang->search->objectTypeList['stage'] = $lang->execution->stage;
|
||||
$lang->search->objectTypeList['sprint'] = $lang->executionCommon;
|
||||
$lang->search->objectTypeList['commonIssue'] = 'Issue';
|
||||
$lang->search->objectTypeList['stakeholderIssue'] = 'Stakeholder Issue';
|
||||
|
||||
@@ -92,7 +92,9 @@ $lang->search->modules['story'] = 'Story';
|
||||
$lang->search->modules['issue'] = 'Issue';
|
||||
$lang->search->modules['risk'] = 'Risk';
|
||||
|
||||
$lang->search->objectTypeList['story'] = $lang->SRCommon;
|
||||
$lang->search->objectTypeList['requirement'] = $lang->URCommon;
|
||||
$lang->search->objectTypeList['stage'] = $lang->execution->stage;
|
||||
$lang->search->objectTypeList['sprint'] = $lang->executionCommon;
|
||||
$lang->search->objectTypeList['story'] = $lang->SRCommon;
|
||||
$lang->search->objectTypeList['requirement'] = $lang->URCommon;
|
||||
$lang->search->objectTypeList['stage'] = $lang->execution->stage;
|
||||
$lang->search->objectTypeList['sprint'] = $lang->executionCommon;
|
||||
$lang->search->objectTypeList['commonIssue'] = 'Issue';
|
||||
$lang->search->objectTypeList['stakeholderIssue'] = 'Stakeholder Issue';
|
||||
|
||||
@@ -92,7 +92,9 @@ $lang->search->modules['story'] = '需求';
|
||||
$lang->search->modules['issue'] = '问题';
|
||||
$lang->search->modules['risk'] = '风险';
|
||||
|
||||
$lang->search->objectTypeList['story'] = $lang->SRCommon;
|
||||
$lang->search->objectTypeList['requirement'] = $lang->URCommon;
|
||||
$lang->search->objectTypeList['stage'] = $lang->execution->stage;
|
||||
$lang->search->objectTypeList['sprint'] = $lang->executionCommon;
|
||||
$lang->search->objectTypeList['story'] = $lang->SRCommon;
|
||||
$lang->search->objectTypeList['requirement'] = $lang->URCommon;
|
||||
$lang->search->objectTypeList['stage'] = $lang->execution->stage;
|
||||
$lang->search->objectTypeList['sprint'] = $lang->executionCommon;
|
||||
$lang->search->objectTypeList['commonIssue'] = '问题';
|
||||
$lang->search->objectTypeList['stakeholderIssue'] = '干系人问题';
|
||||
|
||||
@@ -92,7 +92,9 @@ $lang->search->modules['story'] = '需求';
|
||||
$lang->search->modules['issue'] = '問題';
|
||||
$lang->search->modules['risk'] = '風險';
|
||||
|
||||
$lang->search->objecttypelist['story'] = $lang->srcommon;
|
||||
$lang->search->objecttypelist['requirement'] = $lang->urcommon;
|
||||
$lang->search->objecttypelist['stage'] = $lang->execution->stage;
|
||||
$lang->search->objectTypeList['sprint'] = $lang->executionCommon;
|
||||
$lang->search->objectTypeList['story'] = $lang->SRCommon;
|
||||
$lang->search->objectTypeList['requirement'] = $lang->URCommon;
|
||||
$lang->search->objectTypeList['stage'] = $lang->execution->stage;
|
||||
$lang->search->objectTypeList['sprint'] = $lang->executionCommon;
|
||||
$lang->search->objectTypeList['commonIssue'] = '问题';
|
||||
$lang->search->objectTypeList['stakeholderIssue'] = '干系人问题';
|
||||
|
||||
@@ -574,13 +574,19 @@ class searchModel extends model
|
||||
$method = 'viewstep';
|
||||
}
|
||||
|
||||
if(strpos(',task,bug,testcase,build,release,testtask,testsuite,testreport,issue,risk,', ",$module,") !== false)
|
||||
if(strpos(',task,bug,testcase,build,release,testtask,testsuite,testreport,risk,', ",$module,") !== false)
|
||||
{
|
||||
if(!isset($this->config->objectTables[$record->objectType])) continue;
|
||||
$table = $this->config->objectTables[$record->objectType];
|
||||
$projectID = $this->dao->select('PRJ')->from($table)->where('id')->eq($record->objectID)->fetch('PRJ');
|
||||
$record->url = helper::createLink($module, $method, "id={$record->objectID}", '', false, $projectID);
|
||||
}
|
||||
elseif($module == 'issue')
|
||||
{
|
||||
$issue = $this->dao->select('id,PRJ,owner')->from(TABLE_ISSUE)->where('id')->eq($record->objectID)->fetch();
|
||||
$record->url = helper::createLink($module, $method, "id={$record->objectID}", '', false, $issue->PRJ);
|
||||
$record->extraType = empty($issue->owner) ? 'commonIssue' : 'stakeholderIssue';
|
||||
}
|
||||
elseif($module == 'story')
|
||||
{
|
||||
$story = $this->dao->select('id,type')->from(TABLE_STORY)->where('id')->eq($record->objectID)->fetch();
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
<?php
|
||||
$objectType = $object->objectType == 'case' ? 'testcase' : $object->objectType;
|
||||
echo html::a($object->url, $object->title, '', 'title="' . strip_tags($object->title) . '"');
|
||||
if($objectType == 'story' || $objectType == 'execution')
|
||||
if($objectType == 'story' || $objectType == 'execution' || $objectType == 'issue')
|
||||
{
|
||||
echo "<small class=''>[{$lang->search->objectTypeList[$object->extraType]} #{$object->objectID}]</small> ";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user