* Fix undefined object.

This commit is contained in:
zhujinyong
2021-03-22 10:28:22 +08:00
parent e5f50c7886
commit 17c1af2c1b
2 changed files with 11 additions and 2 deletions
+9
View File
@@ -9,6 +9,7 @@ $lang->project = new stdclass();
$lang->scrum = new stdclass();
$lang->waterfall = new stdclass();
$lang->execution = new stdclass();
$lang->story = new stdclass();
$lang->release = new stdclass();
$lang->branch = new stdclass();
$lang->productplan = new stdclass();
@@ -62,6 +63,14 @@ $lang->team = new stdclass();
$lang->automation = new stdclass();
$lang->personnel = new stdclass();
$lang->mail = new stdclass();
$lang->testsuite = new stdclass();
$lang->caselib = new stdclass();
$lang->ci = new stdclass();
$lang->datatable = new stdclass();
$lang->tree = new stdclass();
$lang->api = new stdclass();
$lang->file = new stdclass();
$lang->misc = new stdclass();
$lang->projectrelease = new stdclass();
$lang->projectstory = new stdclass();
+2 -2
View File
@@ -56,7 +56,7 @@ class repo extends control
}
else
{
$this->repo->setMenu($repos, $repoID);
$this->repo->setMenu($this->repos, $repoID);
}
if(empty($this->repos) and $this->methodName != 'create') die(js::locate($this->repo->createLink('create', "objectID=$objectID")));
@@ -124,7 +124,7 @@ class repo extends control
$this->view->position[] = $this->lang->repo->create;
$this->view->groups = $this->loadModel('group')->getPairs();
$this->view->users = $this->loadModel('user')->getPairs('noletter|noempty|nodeleted');
$this->view->products = $this->loadModel('product')->getProductPairsByProject($this->projectID);
$this->view->products = $this->loadModel('product')->getProductPairsByProject($objectID);
$this->display();
}