This commit is contained in:
wangyidong
2021-08-05 10:56:27 +08:00
6 changed files with 29 additions and 5 deletions
+1 -1
View File
@@ -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')));
+4 -1
View File
@@ -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;
}
+1 -1
View File
@@ -42,7 +42,7 @@
<?php foreach ($gitlabList as $id => $gitlab): ?>
<tr>
<td class='text-center'><?php echo $id;?></td>
<td class='text' title='<?php echo $gitlab->name;?>'><?php echo $gitlab->name;?></td>
<td class='text c-name' title='<?php echo $gitlab->name;?>'><?php echo $gitlab->name;?></td>
<td class='text' title='<?php echo $gitlab->url;?>'><?php echo $gitlab->url;?></td>
<td class='c-actions text-left'>
<?php
+17
View File
@@ -203,6 +203,23 @@ class jobModel extends model
->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 = '';
+1 -1
View File
@@ -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')
{
+5 -1
View File
@@ -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));
}
}
?>
</td>