From 366c2601fcc86be5205d715623ff2482d9503fcb Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Sat, 3 Dec 2005 03:50:03 +0000 Subject: [PATCH] r608: Components inherit product versions --- includes/functions_product.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/includes/functions_product.php b/includes/functions_product.php index e372cb9..7a04ae3 100644 --- a/includes/functions_product.php +++ b/includes/functions_product.php @@ -78,6 +78,15 @@ function construct_pcv_select($action = 'canviewbugs', $select = '', $prefix = ' // construct global options $OPTIONS .= construct_pcv_select_global_version($component['componentmother'], $component['productid'], $versions, 1, $prefix, $select); + // product versions + if (is_array($versions["$component[componentmother]"])) + { + foreach ($versions["$component[componentmother]"] AS $version) + { + $OPTIONS .= construct_option($version['version'], "{$valuepfx}v$version[versionid]", $select, 1, $prefix); + } + } + // versions if (is_array($versions["$component[productid]"])) { -- 2.22.5