From f998f410807c16f513e45851ca5b65d11e31a79e Mon Sep 17 00:00:00 2001 From: caoyanyi Date: Wed, 13 Dec 2023 15:51:18 +0800 Subject: [PATCH] * Adjust implode param for repo. --- module/artifactrepo/ui/browse.html.php | 4 ++-- module/repo/ui/maintain.html.php | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/module/artifactrepo/ui/browse.html.php b/module/artifactrepo/ui/browse.html.php index debadcef2e..6e38b8988a 100644 --- a/module/artifactrepo/ui/browse.html.php +++ b/module/artifactrepo/ui/browse.html.php @@ -26,9 +26,9 @@ foreach($artifactRepos as $repo) foreach($productList as $productID) { if(!isset($products[$productID])) continue; - $repo->productNames[] = zget($products, $productID, $productID); + $productNames[] = zget($products, $productID, $productID); } - $repo->productNames = implode(',', $repo->productNames); + $repo->productNames = implode(',', $productNames); } } $artifactRepos = initTableData($artifactRepos, $config->artifactrepo->dtable->fieldList, $this->artifactrepo); diff --git a/module/repo/ui/maintain.html.php b/module/repo/ui/maintain.html.php index fc160dc987..eb68c3df9d 100644 --- a/module/repo/ui/maintain.html.php +++ b/module/repo/ui/maintain.html.php @@ -19,7 +19,7 @@ $batchCreateItem = array('text' => $lang->repo->batchCreate, 'url' => createLink foreach($repoList as $repo) { - $jobID = 0; + $jobID = 0; $repo->exec = 'disabled'; $repo->report = 'disabled'; if(isset($sonarRepoList[$repo->id])) @@ -38,10 +38,10 @@ foreach($repoList as $repo) if(!isset($products[$productID])) continue; $productNames[] = zget($products, $productID, $productID); } - $repo->productNames = implode(',', $repo->productNames); + $repo->productNames = implode(',', $productNames); } - $repo->projectNames = array(); + $projectNames = array(); $projectList = explode(',', str_replace(' ', '', $repo->projects)); if($projectList) { @@ -50,7 +50,7 @@ foreach($repoList as $repo) if(!isset($projects[$projectID])) continue; $projectNames[] = zget($projects, $projectID, $projectID); } - $repo->projectNames = implode(',', $repo->projectNames); + $repo->projectNames = implode(',', $projectNames); } if(is_object($repo->lastSubmitTime)) $repo->lastSubmitTime = $repo->lastSubmitTime->time;