* Modify api create locate.

This commit is contained in:
caoyanyi
2023-03-29 11:28:24 +08:00
parent 7d1e4e1316
commit 3634bedb57
3 changed files with 6 additions and 6 deletions
+2 -2
View File
@@ -96,7 +96,7 @@ class api extends control
$this->view->moduleID = $moduleID;
$this->view->libTree = $this->api->getLibTree($libID, $libs, $objectID);
$this->view->users = $this->user->getPairs('noclosed,noletter');
$this->view->objectDropdown = $this->generateLibsDropMenu($libs[$libID], $release);
$this->view->objectDropdown = isset($libs[$libID]) ? $this->generateLibsDropMenu($libs[$libID], $release) : '';
$this->display();
}
@@ -546,7 +546,7 @@ class api extends control
$libName = isset($lib->name) ? $lib->name . $this->lang->colon : '';
$this->getTypeOptions($libID);
$this->view->gobackLink = $this->createLink('api', 'index', "libID=$libID&moduleID=$moduleID");
$this->view->gobackLink = '';
$this->view->user = $this->app->user->account;
$this->view->allUsers = $this->loadModel('user')->getPairs('devfirst|noclosed');
$this->view->libID = $libID;