From 9a47e916cc43a3c59a915a99ed214bf53f033360 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Mon, 11 Dec 2006 03:49:18 +0000 Subject: [PATCH] r1363: Fix the display of product and component changes on showhistory.php --- docs/changes.txt | 1 + showhistory.php | 10 +++++----- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/docs/changes.txt b/docs/changes.txt index 473e5ec..b755999 100644 --- a/docs/changes.txt +++ b/docs/changes.txt @@ -7,6 +7,7 @@ - Components can now be displayed on the bug grid (bug://report/43) - Votes can now be displayed and sorted on the bug grid (bug://report/13) - Users can save a search so they can rerun it at any time +- Component and product changes wouldn't appear correcly on showhistory.php 1.1.4 =============================== diff --git a/showhistory.php b/showhistory.php index 94b4b49..e368db7 100644 --- a/showhistory.php +++ b/showhistory.php @@ -48,8 +48,8 @@ $lookupfields = array( 'severity' => 'severity', 'resolution' => 'resolution', 'version' => 'version', - 'product' => 'product', - 'component' => 'product' + 'product' => 'title', + 'component' => 'title' ); $lookupkeys = array_keys($lookupfields); @@ -128,9 +128,9 @@ foreach ($logs AS $dateline => $logitems) if (in_array($matches[1], $lookupkeys)) { - $lookup = $lookupfields["$matches[1]"]; - $log['original'] = $bugsys->datastore[ $lookupfields["$lookup"] ]["$log[original]"]["$lookup"]; - $log['changed'] = $bugsys->datastore[ $lookupfields["$lookup"] ]["$log[changed]"]["$lookup"]; + $lookup = $matches[1]; + $log['original'] = $bugsys->datastore["$lookup"]["$log[original]"][ $lookupfields["$lookup"] ]; + $log['changed'] = $bugsys->datastore["$lookup"]["$log[changed]"][ $lookupfields["$lookup"] ]; } else if ($matches[1] == 'assignto' OR $matches[1] == 'assignedto') { -- 2.22.5