From e1295a89e43d27f82d37c4f4a868a5e7a46e99d4 Mon Sep 17 00:00:00 2001 From: wangyidong Date: Wed, 12 Apr 2023 15:30:21 +0800 Subject: [PATCH] * fix bug #34088. --- module/doc/control.php | 42 ------------------------------------------ 1 file changed, 42 deletions(-) diff --git a/module/doc/control.php b/module/doc/control.php index 112edb6961..ecc907dec1 100755 --- a/module/doc/control.php +++ b/module/doc/control.php @@ -394,24 +394,7 @@ class doc extends control return $this->send($response); } - if($this->app->tab == 'product') - { - $this->product->setMenu($objectID); - } - elseif($this->app->tab == 'project') - { - $this->project->setMenu($this->session->project); - } - elseif($this->app->tab == 'execution') - { - $this->execution->setMenu($objectID); - } - else - { - $this->app->rawMethod = $objectType; - } unset($_GET['onlybody']); - $this->config->showMainMenu = (strpos($this->config->doc->textTypes, $docType) === false or $from == 'template'); $lib = $libID ? $this->doc->getLibByID($libID) : ''; @@ -579,31 +562,6 @@ class doc extends control $objectType = $lib->type; $objectID = zget($lib, $objectType, 0); - /* Set menus. */ - if($this->app->tab == 'product') - { - $this->product->setMenu($objectID); - } - else if($this->app->tab == 'project') - { - $this->project->setMenu($objectID); - } - else if($this->app->tab == 'execution') - { - $this->execution->setMenu($objectID); - } - else if($this->app->tab == 'my') - { - $this->lang->doc->menu = $this->lang->my->menu->contribute; - $this->lang->modulePageNav = ''; - $this->lang->TRActions = ''; - $this->lang->my->menu->contribute['subModule'] = 'doc'; - } - else - { - $this->app->rawMethod = $objectType == 'execution' ? 'project' : $objectType; - } - $libs = $this->doc->getLibs($objectType, 'withObject', $libID, $objectID); $objects = array(); if($objectType == 'project')