r1363: Fix the display of product and component changes on showhistory.php
authorRobert Sesek <rsesek@bluestatic.org>
Mon, 11 Dec 2006 03:49:18 +0000 (03:49 +0000)
committerRobert Sesek <rsesek@bluestatic.org>
Mon, 11 Dec 2006 03:49:18 +0000 (03:49 +0000)
docs/changes.txt
showhistory.php

index 473e5eccb4fab02ba1180489ba8967c11865728c..b7559990096a1e0904d6aeaa9315fc84a2efa5f4 100644 (file)
@@ -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
 ===============================
index 94b4b49e0e47dbeefdab83686289ab3293ebc340..e368db704f2005506e34cd5594c9fd45f81241f6 100644 (file)
@@ -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')
                        {