* Rename codes to meet devel rule and bug fix on params.
This commit is contained in:
@@ -167,9 +167,9 @@ class repo extends control
|
||||
|
||||
$this->app->loadLang('action');
|
||||
|
||||
if($repo->SCM == 'Gitlab')
|
||||
if(strtolower($repo->SCM) == 'gitlab')
|
||||
{
|
||||
$projects = $this->loadModel('gitlab')->apiGetProjects($repo->gitlab, $repo->password);
|
||||
$projects = $this->loadModel('gitlab')->apiGetProjects($repo->gitlab);
|
||||
|
||||
$options = array();
|
||||
foreach($projects as $project) $options[$project->id] = $project->name_with_namespace;
|
||||
|
||||
@@ -11,7 +11,7 @@ $(function()
|
||||
{
|
||||
host = $('#gitlabHost').val();
|
||||
if(host == '') return false;
|
||||
url = createLink('repo', 'ajaxgetgitlabprojects', "host=" + host);
|
||||
url = createLink('repo', 'ajaxGetGitlabProjects', "host=" + host);
|
||||
|
||||
$.get(url, function(response)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user