* [refac bug #53776] Build search objectType field by type.
This commit is contained in:
+24
-13
@@ -835,23 +835,34 @@ class docZen extends doc
|
||||
$actionURL = $this->createLink($this->app->rawModule, $this->app->rawMethod, "type={$type}&objectID={$objectID}&viewType={$viewType}&browseType=bySearch&queryID=myQueryID");
|
||||
|
||||
$objectTypeList = array();
|
||||
$objectTypeList['product'] = $this->lang->product->common;
|
||||
$objectTypeList['story'] = $this->lang->doc->story;
|
||||
$objectTypeList['productplan'] = $this->lang->productplan->shortCommon;
|
||||
$objectTypeList['release'] = $this->lang->release->common;
|
||||
$objectTypeList['design'] = $this->lang->design->common;
|
||||
$objectTypeList['project'] = $this->lang->project->common;
|
||||
$objectTypeList['execution'] = $this->lang->execution->common;
|
||||
$objectTypeList['task'] = $this->lang->task->common;
|
||||
$objectTypeList['build'] = $this->lang->build->common;
|
||||
$objectTypeList['review'] = $this->lang->review->common;
|
||||
if($type == 'product')
|
||||
{
|
||||
$objectTypeList['product'] = $this->lang->product->common;
|
||||
$objectTypeList['story'] = $this->lang->doc->story;
|
||||
$objectTypeList['productplan'] = $this->lang->productplan->shortCommon;
|
||||
$objectTypeList['release'] = $this->lang->release->common;
|
||||
}
|
||||
if($type == 'project')
|
||||
{
|
||||
$objectTypeList['project'] = $this->lang->project->common;
|
||||
$objectTypeList['design'] = $this->lang->design->common;
|
||||
$objectTypeList['review'] = $this->lang->review->common;
|
||||
if(isset($this->lang->issue->common)) $objectTypeList['issue'] = $this->lang->issue->common;
|
||||
if(isset($this->lang->meeting->common)) $objectTypeList['meeting'] = $this->lang->meeting->common;
|
||||
}
|
||||
if($type == 'project' || $type == 'execution')
|
||||
{
|
||||
$objectTypeList['execution'] = $this->lang->execution->common;
|
||||
$objectTypeList['task'] = $this->lang->task->common;
|
||||
$objectTypeList['story'] = $this->lang->doc->story;
|
||||
$objectTypeList['build'] = $this->lang->build->common;
|
||||
$objectTypeList['testtask'] = $this->lang->testtask->common;
|
||||
}
|
||||
|
||||
$objectTypeList['bug'] = $this->lang->bug->common;
|
||||
$objectTypeList['testcase'] = $this->lang->case->common;
|
||||
$objectTypeList['testtask'] = $this->lang->testtask->common;
|
||||
$objectTypeList['testreport'] = $this->lang->testreport->common;
|
||||
$objectTypeList['doc'] = $this->lang->doc->common;
|
||||
if(isset($this->lang->issue->common)) $objectTypeList['issue'] = $this->lang->issue->common;
|
||||
if(isset($this->lang->meeting->common)) $objectTypeList['meeting'] = $this->lang->meeting->common;
|
||||
$this->config->file->search['params']['objectType']['values'] = $objectTypeList;
|
||||
|
||||
$this->config->file->search['module'] = "{$type}DocFile";
|
||||
|
||||
Reference in New Issue
Block a user