* Fix task #99278, bug #36945.

This commit is contained in:
tanghucheng
2023-08-01 16:25:20 +08:00
parent 44aa12508a
commit 82013ae764
2 changed files with 15 additions and 1 deletions
+13 -1
View File
@@ -40,7 +40,19 @@ adjustMenuWidth();
<h4>
<?php
$objectType = $object->objectType == 'case' ? 'testcase' : $object->objectType;
echo html::a($object->url, $object->title, '', 'title="' . strip_tags($object->title) . '"');
if($objectType == 'task')
{
$isMultiProject = $this->dao->select('multiple')->from(TABLE_PROJECT)->alias('t1')
->leftJoin(TABLE_TASK)->alias('t2')->on('t2.execution=t1.id')
->where('t2.id')->eq($object->objectID)
->fetch('multiple');
if(!$isMultiProject) echo html::a($object->url, $object->title, '', 'data-app="project" title="' . strip_tags($object->title) . '"');
}
else
{
echo html::a($object->url, $object->title, '', 'title="' . strip_tags($object->title) . '"');
}
if(($objectType == 'story' || $objectType == 'requirement' || $objectType == 'execution' || $objectType == 'issue') and !empty($object->extraType))
{
echo "<small class=''>[{$lang->search->objectTypeList[$object->extraType]} #{$object->objectID}]</small> ";
+2
View File
@@ -538,6 +538,8 @@ class task extends control
/* Set menu. */
$this->execution->setMenu($this->view->execution->id);
if(!$this->view->execution->multiple) $this->loadModel('project')->setMenu($this->view->task->project);
$this->view->position[] = html::a($this->createLink('execution', 'browse', "execution={$this->view->task->execution}"), $this->view->execution->name);
}