* fix bug #34088.
This commit is contained in:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user