From 8ada6dd2a7add31f48b51c6853f94bda84f9e683 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Wed, 17 Aug 2005 04:36:46 +0000 Subject: [PATCH] r341: -Show PC on edit mode - to-do-- --- docs/todo.txt | 1 - showreport.php | 6 +++--- templates/showreport.tpl | 2 +- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/docs/todo.txt b/docs/todo.txt index b87f5be..05f2e9a 100755 --- a/docs/todo.txt +++ b/docs/todo.txt @@ -14,7 +14,6 @@ BUGTRACK 1.0 GENERAL USER END ---------------------------------------- - New style -- Make summary field longer ---------------------------------------- BUG REPORTING/EDITING diff --git a/showreport.php b/showreport.php index e47dea7..24b596b 100644 --- a/showreport.php +++ b/showreport.php @@ -88,6 +88,9 @@ $favouritetext = (($favourite) ? 'Remove from Favourites' : 'Add to Favourites') $bug['userinfo'] = construct_user_display($bug); $bug['datetime'] = $datef->format($bugsys->options['dateformat'], $bug['dateline']); +$bug['product'] = $bugsys->datastore['product']["$bug[productid]"]['title']; +$bug['component'] = (($bug['componentid']) ? $bugsys->datastore['product']["$bug[componentid]"]['title'] : ''); +$bug['version'] = $bugsys->datastore['version']["$bug[versionid]"]['version']; // ################################################################### // edit display @@ -160,9 +163,6 @@ else { // ------------------------------------------------------------------- // prep display - $bug['product'] = $bugsys->datastore['product']["$bug[productid]"]['title']; - $bug['component'] = (($bug['componentid']) ? $bugsys->datastore['product']["$bug[componentid]"]['title'] : ''); - $bug['version'] = $bugsys->datastore['version']["$bug[versionid]"]['version']; $bug['status'] = $bugsys->datastore['status']["$bug[status]"]['status']; $bug['resolution'] = $bugsys->datastore['resolution']["$bug[resolution]"]['resolution']; $bug['severity'] = $bugsys->datastore['severity']["$bug[severity]"]['severity']; diff --git a/templates/showreport.tpl b/templates/showreport.tpl index 75d3566..1893c23 100644 --- a/templates/showreport.tpl +++ b/templates/showreport.tpl @@ -49,7 +49,7 @@ $header Product/Version - + $bug[product] / $bug[component] / $bug[product] / $bug[component] / $bug[version] -- 2.43.5