* Fix error for trim second param is chinese.

This commit is contained in:
caoyanyi
2023-12-13 15:42:57 +08:00
parent 48b3cb196c
commit a650ec7889
+5 -7
View File
@@ -17,23 +17,21 @@ $canCreate = hasPriv('artifactrepo', 'create');
foreach($artifactRepos as $repo)
{
$repo->productNames = '';
$productList = explode(',', str_replace(' ', '', $repo->products));
$productNames = array();
$productList = explode(',', str_replace(' ', '', $repo->products));
if($productList)
{
foreach($productList as $productID)
{
if(!isset($products[$productID])) continue;
$repo->productNames .= ',' . zget($products, $productID, $productID);
$repo->productNames[] = zget($products, $productID, $productID);
}
$repo->productNames = trim($repo->productNames, ',');
$repo->productNames = implode(',', $repo->productNames);
}
}
$artifactRepos = initTableData($artifactRepos, $config->artifactrepo->dtable->fieldList, $this->artifactrepo);
featureBar
(
);
featureBar();
toolBar
(