2010/02/02 03:05:31 +0000 claunia: Do not limit version list

This commit is contained in:
2014-09-04 05:38:36 +01:00
parent b33418227c
commit 671b1876bd

View File

@@ -179,10 +179,11 @@ function get_bugzilla_versions($bReturnIds = false)
if(STABLE_BRANCHES)
$aBranches = array_merge($aBranches, explode(',', STABLE_BRANCHES));
foreach($aBranches as $sBranch)
{
$sWhere = "WHERE product_id =".BUGZILLA_PRODUCT_ID." AND value LIKE '$sBranch%'";
$sQuery = "SELECT $sFetchColumn FROM $sTable $sWhere ORDER BY id desc limit 6";
// foreach($aBranches as $sBranch)
// {
// $sWhere = "WHERE product_id =".BUGZILLA_PRODUCT_ID." AND value LIKE '$sBranch%'";
$sWhere = "WHERE product_id =".BUGZILLA_PRODUCT_ID;
$sQuery = "SELECT $sFetchColumn FROM $sTable $sWhere ORDER BY id desc";
$hResult = query_bugzilladb($sQuery);
if($hResult)
{
@@ -192,7 +193,7 @@ function get_bugzilla_versions($bReturnIds = false)
$aVersions[] = $sValue;
}
}
}
// }
return $aVersions;
}