diff --git a/module/repo/control.php b/module/repo/control.php index 5b3e32f5cb..358d6ec491 100644 --- a/module/repo/control.php +++ b/module/repo/control.php @@ -80,6 +80,10 @@ class repo extends control $this->lang->switcherMenu = ''; if(common::hasPriv('repo', 'create')) $this->lang->TRActions = html::a(helper::createLink('repo', 'create'), " " . $this->lang->repo->create, '', "class='btn btn-primary'"); + $repoID = $this->repo->saveState(0, $objectID); + $this->commonAction($repoID, $objectID); + $this->repo->setMenu($this->repos, $repoID, false); + $repoList = $this->repo->getList(0, $orderBy); /* Pager. */ @@ -124,7 +128,7 @@ class repo extends control $this->commonAction($repoID, $objectID); $this->app->loadLang('action'); - $this->repo->setMenu($this->repos, '', false); + $this->repo->setMenu($this->repos, $repoID, false); $this->view->title = $this->lang->repo->common . $this->lang->colon . $this->lang->repo->create; $this->view->position[] = $this->lang->repo->create;