* Fix repo menu.

This commit is contained in:
zhujinyong
2021-03-29 09:36:28 +08:00
parent ba8ac63702
commit a0beb20249
+5 -1
View File
@@ -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'), "<i class='icon icon-plus'></i> " . $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;