diff --git a/module/doc/control.php b/module/doc/control.php index 7f0b5845a9..a6b659d7a4 100755 --- a/module/doc/control.php +++ b/module/doc/control.php @@ -1156,7 +1156,7 @@ class doc extends control $objectType = isset($lib->type) ? $lib->type : 'custom'; $type = $objectType == 'execution' && $this->app->tab != 'execution' ? 'project' : $objectType; $objectID = zget($doc, $type, 0); - $this->lang->doc->menu->custom['alias'] = 'teamspace,view'; + if($objectType == 'custom') $this->lang->doc->menu->custom['alias'] = 'teamspace,view'; list($libs, $libID, $object, $objectID, $objectDropdown) = $this->doc->setMenuByType($type, $objectID, $doc->lib, $appendLib); /* Get doc. */