* Fix bug #47151, adjust repo create page product.

This commit is contained in:
caoyanyi
2024-03-21 16:43:07 +08:00
parent 275d7d6671
commit 789a7aa43e
+3 -3
View File
@@ -366,7 +366,7 @@ class repoZen extends repo
$this->repo->saveState(0, $objectID);
$this->app->loadLang('action');
$this->loadModel('product');
if($this->app->tab == 'project' or $this->app->tab == 'execution')
{
$products = $this->loadModel('project')->getBranchesByProject($objectID);
@@ -376,10 +376,10 @@ class repoZen extends repo
}
else
{
$products = $this->loadModel('product')->getPairs('', 0, '', 'all');
$products = $this->product->getPairs('', 0, '', 'all');
}
$projects = $this->loadModel('product')->getProjectPairsByProductIDList(array_keys($products));
$projects = $this->product->getProjectPairsByProductIDList(array_keys($products));
$this->view->title = $this->lang->repo->common . $this->lang->colon . $this->lang->repo->create;
$this->view->groups = $this->loadModel('group')->getPairs();
$this->view->users = $this->loadModel('user')->getPairs('noletter|noempty|nodeleted|noclosed');