Bug 7966

Summary: RFE: Return to bug list from bug display
Product: [Community] Bugzilla Reporter: hno
Component: Bugzilla GeneralAssignee: David Lawrence <dkl>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: low Docs Contact:
Priority: medium    
Version: 2.1r   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2000-01-24 18:48:43 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description hno 1999-12-23 11:34:30 UTC
It would be very convenient if there was a button to return to the bug list
when viewing/editing a bug in a query result. There exists buttons to
navigate thru the list, but nothing to view the actual list again.

Comment 1 Riley H Williams 1999-12-23 20:54:59 UTC
I use my browser's BACK button for this, if that helps.

Comment 2 David Lawrence 1999-12-23 20:57:59 UTC
I admit this would be nice but would actually not be a trivial addition. I will
look into this as time allows.

Comment 3 hno 1999-12-23 22:46:59 UTC
It does not help much when you have navigated a few steps, added some comment
and so on.

Adding it should be quite trivial. You have the bugid list in a cookie, and it
should not be that much work to build a display from that by either using a
modified buglist script, or adding the functionality to the existing one.

Looking thru the script it is actually quite trivial. There is a SQL backdoor on
buglist.cgi, and you can use it to create any query. Simply create a link to

/bugzilla/buglist.cgi?sql=bugs.bug_id%20in%20(4753,7683,4532)

where 4753,7683,4532 is the current value of BUGLIST.

Comment 4 hno 1999-12-23 22:48:59 UTC
This diff should do it I think.. (not tested, don't have a bugzilla installed
here)

--- CGI.pl.orig	Wed Dec  1 23:56:06 1999
+++ CGI.pl	Thu Dec 23 23:53:19 1999
@@ -190,7 +190,9 @@
 		my @bugs = split(/:/, $::COOKIE{"BUGLIST"});
 		my $cur = lsearch(\@bugs, $::FORM{"id"});
 #		print "<CENTER><B>Bug List:</B> (@{[$cur + 1]} of @{[$#bugs + 1]})\n";
-      	print "<B>Bug List:</B> (@{[$cur + 1]} of @{[$#bugs + 1]})\n";
+      	print "<B>Bug List:</B> (";
+		print "<A HREF=\"buglist.cgi?sql=bugs.bug_id%20in%20(";
+		print join(",",@bugs),")\"@{[$cur + 1]} of @{[$#bugs + 1]}</A>)\n";
 		print "<A HREF=\"show_bug.cgi?id=$bugs[0]\">First</A>\n";
 		print "<A HREF=\"show_bug.cgi?id=$bugs[$#bugs]\">Last</A>\n";
 		if ($cur > 0) {

Comment 5 David Lawrence 2000-01-24 18:48:59 UTC
My fault. I did overlook that one feature of the Bugzilla system. You are right
using that functionality it is a simple task. I have added it and should show up
soon.