https://src.bluestatic.org
/
bugdar.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bf5c1f5
)
Fix a bug in ConstructVersionSelect() that would cause all the versions to be selected
author
Robert Sesek <rsesek@bluestatic.org>
Sat, 23 Aug 2008 15:58:39 +0000
(11:58 -0400)
committer
Robert Sesek <rsesek@bluestatic.org>
Sat, 23 Aug 2008 15:58:39 +0000
(11:58 -0400)
includes/functions_product.php
patch
|
blob
|
history
diff --git
a/includes/functions_product.php
b/includes/functions_product.php
index ddbc7ab578b9de9d113c0af13f5b41a8ab5d9fc9..963102d9c5c8444842aa6a738d0e72cc9044d6d3 100644
(file)
--- 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();
}
}