* Adjust implode param for repo.
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user