From 993f112d282eff4a3ac1210ddf6d300eaa910cd9 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Sat, 3 Dec 2005 03:27:46 +0000 Subject: [PATCH] r607: Make the editcomponent code work right --- admin/product.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/admin/product.php b/admin/product.php index 695e0c6..7050cdc 100755 --- a/admin/product.php +++ b/admin/product.php @@ -23,7 +23,8 @@ function construct_option_list($type, $id, $edit, $addcomponent, $addversion, $d global $bugsys; $type_display = $type; - $type = strtolower((($type == 'component') ? 'product' : $type)); + $type = strtolower($type); + $type = ($type == 'component' ? 'product' : $type); $type_action = (($type == 'version') ? 'versionid' : 'productid'); if ($edit) -- 2.43.5