From 3b49acb87869fa32e53cef5dbff2479285a53b63 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Sun, 17 Sep 2006 18:03:28 +0000 Subject: [PATCH] r1160: Fixed more display issues in admin/product.php --- admin/product.php | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/admin/product.php b/admin/product.php index e87fdd7..bbb8aa9 100755 --- a/admin/product.php +++ b/admin/product.php @@ -362,7 +362,7 @@ EOF; } else { - $component["$prod[componentmother]"][] = $prod; + $components["$prod[componentmother]"][] = $prod; } $version["$prod[productid]"] = array(); } @@ -371,7 +371,7 @@ EOF; $versions = array(); while ($vers = $db->fetch_array($versions_get)) { - $version["$vers[productid]"]["$vers[versionid]"] = $vers; + $versions["$vers[productid]"]["$vers[versionid]"] = $vers; } $admin->table_start(); @@ -403,16 +403,19 @@ EOF; } // Components - if (is_array($component["$product[productid]"])) + if (is_array($components["$product[productid]"])) { - foreach ($component["$product[productid]"] AS $comp) + foreach ($components["$product[productid]"] AS $comp) { $admin->row_text("-- $comp[title]", construct_option_list(_('Component'), $comp['productid'], 1, 0, 1, 1, $comp['displayorder']), 'middle', 2, 'alt1'); // Component versions - foreach ($versions["$comp[productid]"] AS $version) + if (is_array($versions["$comp[productid]"])) { - $admin->row_text('---- ' . $version['version'], construct_option_list(_('Version'), $version['versionid'], 1, 0, 0, 1, $version['displayorder']), 'middle', 2, 'alt2'); + foreach ($versions["$comp[productid]"] AS $version) + { + $admin->row_text('---- ' . $version['version'], construct_option_list(_('Version'), $version['versionid'], 1, 0, 0, 1, $version['displayorder']), 'middle', 2, 'alt2'); + } } } } -- 2.43.5