* Code for task #89135.

This commit is contained in:
tianshujie
2023-03-28 16:08:03 +08:00
parent be6e085521
commit a85291e639
2 changed files with 14 additions and 5 deletions
+5
View File
@@ -310,6 +310,11 @@ class doc extends control
$objectType = $lib->type;
$objectID = strpos(',product,project,execution,', ",$objectType,") !== false ? $lib->{$objectType} : 0;
if($this->app->tab == 'doc' and $objectType == 'execution')
{
$objectType = 'project';
$objectID = $lib->project;
}
$browseLink = $this->createLink('doc', $from, "type=$objectType&objectID=$objectID");
return print(js::locate($browseLink, 'parent'));