This commit is contained in:
liyuchun
2021-12-02 08:54:51 +08:00
parent fd0fb325fa
commit d68810fd4a
+2 -1
View File
@@ -169,7 +169,8 @@ class repo extends control
if(strtolower($repo->SCM) == 'gitlab')
{
$projects = $this->loadModel('gitlab')->apiGetProjects($repo->gitlab);
$gitlabID = isset($repo->gitlab) ? $repo->gitlab : 0;
$projects = $this->loadModel('gitlab')->apiGetProjects($gitlabID);
$options = array();
foreach($projects as $project) $options[$project->id] = $project->name_with_namespace;