diff --git a/module/doc/model.php b/module/doc/model.php index 4e007839e1..63d6bb5db4 100644 --- a/module/doc/model.php +++ b/module/doc/model.php @@ -2305,7 +2305,7 @@ EOT; if($libID == 0) $libID = key($libs); $this->lang->modulePageNav = $this->select($type, $objects, $objectID, $libs, $libID); - $this->app->rawMethod = $type; + if($this->app->openApp == 'doc') $this->app->rawMethod = $type; $object = $this->dao->select('id,name,status')->from($table)->where('id')->eq($objectID)->fetch(); if(empty($object)) die(js::locate(helper::createLink($type, 'create'))); diff --git a/module/execution/model.php b/module/execution/model.php index c5301e4413..0e416d6bb5 100644 --- a/module/execution/model.php +++ b/module/execution/model.php @@ -1300,7 +1300,10 @@ class executionModel extends model $link = helper::createLink($module, $method, "executionID=%s"); } - if($module == 'doc') $link = helper::createLink('doc', 'objectLibs', "type=execution&objectID=%s&from=execution"); + if($module == 'doc') + { + $link = helper::createLink('doc', $method, "type=execution&objectID=%s&from=execution"); + } return $link; } diff --git a/module/gitlab/view/browse.html.php b/module/gitlab/view/browse.html.php index 31b054a9cf..3ddbdcdf5a 100644 --- a/module/gitlab/view/browse.html.php +++ b/module/gitlab/view/browse.html.php @@ -42,7 +42,7 @@ $gitlab): ?> - name;?> + name;?> url;?> add('editedDate', helper::now()) ->remove('repoType') ->get(); + + if($job->engine == 'jenkins') + { + $job->server = $job->jkServer; + $job->pipeline = $job->jkTask; + } + + if(strtolower($job->engine) == 'gitlab') + { + $repo = $this->loadModel('repo')->getRepoByID($job->repo); + $job->server = $repo->gitlab; + $job->pipeline = $repo->project; + } + + unset($job->jkServer); + unset($job->jkTask); + if($job->triggerType == 'schedule') $job->atDay = empty($_POST['atDay']) ? '' : join(',', $this->post->atDay); $job->svnDir = ''; diff --git a/module/product/model.php b/module/product/model.php index fee25cb4c4..ef6dccf915 100644 --- a/module/product/model.php +++ b/module/product/model.php @@ -1785,7 +1785,7 @@ class productModel extends model } else if($module == 'doc') { - $link = helper::createLink('doc', 'objectLibs', "type=product&objectID=%s&from=product"); + $link = helper::createLink('doc', $method, "type=product&objectID=%s&from=product"); } elseif($module == 'design') { diff --git a/module/repo/view/maintain.html.php b/module/repo/view/maintain.html.php index 3faa6d9ea1..ff384ebb31 100644 --- a/module/repo/view/maintain.html.php +++ b/module/repo/view/maintain.html.php @@ -41,7 +41,11 @@ $productList = explode(',', str_replace(' ', '', $repo->product)); if(isset($productList) and $productList[0]) { - foreach($productList as $productID) echo ' ' . html::a($this->createLink('product', 'browse', "productID=$productID"), zget($products, $productID, $productID)); + foreach($productList as $productID) + { + if(!isset($products[$productID])) continue; + echo ' ' . html::a($this->createLink('product', 'browse', "productID=$productID"), zget($products, $productID, $productID)); + } } ?>