* fix for set object link.
This commit is contained in:
@@ -483,7 +483,7 @@ $lang->action->label->testtask = '测试单|testtask|view|caseID=%s';
|
||||
$lang->action->label->testsuite = '测试套件|testsuite|view|suiteID=%s';
|
||||
$lang->action->label->caselib = '用例库|caselib|view|libID=%s';
|
||||
$lang->action->label->todo = '待办|todo|view|todoID=%s';
|
||||
$lang->action->label->doclib = '文档库|doc|objectLibs|type=%s&objectID=%s&libID=%s&docID=&version=&appendLib=%s';
|
||||
$lang->action->label->doclib = '文档库|doc|tablecontents|type=%s&objectID=%s&libID=%s';
|
||||
$lang->action->label->doc = '文档|doc|view|docID=%s';
|
||||
$lang->action->label->user = '用户|user|view|account=%s';
|
||||
$lang->action->label->testreport = '报告|testreport|view|report=%s';
|
||||
|
||||
+19
-1
@@ -1156,7 +1156,25 @@ class actionModel extends model
|
||||
}
|
||||
else
|
||||
{
|
||||
$action->objectLink = helper::createLink($moduleName, $methodName, sprintf($vars, $action->objectID));
|
||||
if($action->objectType == 'doclib')
|
||||
{
|
||||
$libID = $action->objectID;
|
||||
$type = 'custom';
|
||||
if($action->execution != 0) $type = 'execution';
|
||||
if($action->project != 0) $type = 'project';
|
||||
if($action->product != ',0,') $type = 'product';
|
||||
|
||||
$libObjectID = $type != 'custom' ? $action->$type : '';
|
||||
$libObjectID = trim($libObjectID, ',');
|
||||
if(empty($libObjectID)) return false;
|
||||
|
||||
$params = sprintf($vars, $type, $libObjectID, $libID);
|
||||
}
|
||||
else
|
||||
{
|
||||
$params = sprintf($vars, $action->objectID);
|
||||
}
|
||||
$action->objectLink = helper::createLink($moduleName, $methodName, $params);
|
||||
|
||||
if($action->objectType == 'doclib')
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user