From af51504e964106bb043e3b43c82cf3d38fc85bb0 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Sat, 23 Aug 2008 11:58:39 -0400 Subject: [PATCH] Fix a bug in ConstructVersionSelect() that would cause all the versions to be selected --- includes/functions_product.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/functions_product.php b/includes/functions_product.php index ddbc7ab..963102d 100644 --- a/includes/functions_product.php +++ b/includes/functions_product.php @@ -109,9 +109,9 @@ function ConstructVersionSelect($productid, $select, $obsolete) $tpl = new BSTemplate('selectoption'); $tpl->vars = array( 'value' => intval($product['productid']) . ',' . intval($component['productid']) . ',' . intval($versionid), - 'label' => $version['version'], - 'selected' => ($value == $select) + 'label' => $version['version'] ); + $tpl->vars['selected'] = ($tpl->vars['value'] == $select); $build .= $tpl->evaluate()->getTemplate(); } } -- 2.43.5