Do not limit version list

svn path=/; revision=21
This commit is contained in:
2010-02-02 03:05:31 +00:00
parent be4c8c712d
commit f3ad1f8c9c

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;
}