* Optimize url parameter.
This commit is contained in:
@@ -321,4 +321,5 @@ $filter->gitlab->importissue->get['gitlab'] = 'int';
|
||||
$filter->gitlab->importissue->get['product'] = 'int';
|
||||
$filter->gitlab->importissue->get['product'] = 'string';
|
||||
$filter->gitlab->importissue->get['project'] = 'int';
|
||||
$filter->gitlab->importissue->get['repo'] = 'int';
|
||||
|
||||
|
||||
@@ -259,10 +259,10 @@ class gitlab extends control
|
||||
*/
|
||||
public function importIssue()
|
||||
{
|
||||
$productIDList = explode(',', $this->get->product);
|
||||
$gitlabID = $this->get->gitlab;
|
||||
$projectID = $this->get->project;
|
||||
|
||||
$repo = $this->loadModel('repo')->getRepoByID($this->get->repo);
|
||||
$productIDList = explode(',', $repo->product);
|
||||
$gitlabID = $repo->gitlab;
|
||||
$projectID = $repo->project;
|
||||
|
||||
if($_POST)
|
||||
{
|
||||
|
||||
@@ -49,7 +49,7 @@
|
||||
<td class='text-left c-actions'>
|
||||
<?php
|
||||
common::printIcon('repo', 'edit', "repoID=$repo->id&objectID=$objectID", '', 'list', 'edit');
|
||||
common::printIcon('gitlab', 'importissue', "product={$repo->product}&gitlab={$repo->gitlab}&project={$repo->project}", '', 'list', 'link');
|
||||
common::printIcon('gitlab', 'importissue', "repo={$repo->id}", '', 'list', 'link');
|
||||
if(common::hasPriv('repo', 'delete')) echo html::a($this->createLink('repo', 'delete', "repoID=$repo->id&objectID=$objectID"), '<i class="icon-trash"></i>', 'hiddenwin', "title='{$lang->repo->delete}' class='btn'");
|
||||
?>
|
||||
</td>
|
||||
|
||||
Reference in New Issue
Block a user