Closed Bug 364835 Opened 18 years ago Closed 18 years ago

current bug number should be filled in in "to bugs" input box to simplify tagging

Categories

(Bugzilla :: User Interface, enhancement)

2.23.3
enhancement
Not set
normal

Tracking

()

RESOLVED FIXED
Bugzilla 3.0

People

(Reporter: piratepenguin, Assigned: reed)

Details

Attachments

(1 file, 3 obsolete files)

User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9a2pre) Gecko/20061222 Minefield/3.0a2pre
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9a2pre) Gecko/20061222 Minefield/3.0a2pre

The current bug number should be filled in in "to bugs" input box to simplify tagging.

Reproducible: Always

Steps to Reproduce:
1.login and view https://landfill.bugzilla.org/prodpatches/show_bug.cgi?id=415
2.examine the tagging interface at the bottom
3.

Actual Results:  
Tagging would be much simpler if the current bug number was filled in in the "to bugs" input box.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Target Milestone: --- → Bugzilla 3.0
Version: unspecified → 2.23.3
Attached patch patch - v1 (obsolete) — Splinter Review
Pre-fill the box with the bug's id if there is one.
Assignee: ui → reed
Status: NEW → ASSIGNED
Attachment #249672 - Flags: review?(bugzilla-mozilla)
Comment on attachment 249672 [details] [diff] [review]
patch - v1

>Index: template/en/default/global/per-bug-queries.html.tmpl

>-        <input type="text" name="bug_ids" size="12" maxlength="80">
>+        <input type="text" name="bug_ids" size="12" maxlength="80"
>+         [%- " value=\"$bug.bug_id\"" IF bug %]>

This assumes bug is only used by show_bug.cgi. It is also used by buglist.cgi (others as well). E.g. try buglist.cgi?bug_id=1,2 (or any search). The code will prefill the tag to '2'.

Think the best option is having a different variable.

Further, with show_bug.cgi?id=1&id=2&format=multiple it would be nice if it would prefill the list with "1,2" :-) (not a requirement.. having it work for a single bug is fine).
Attachment #249672 - Flags: review?(bugzilla-mozilla) → review-
Attached patch patch - v2 (obsolete) — Splinter Review
Use "bugids" as a var name and implement request.
Attachment #249672 - Attachment is obsolete: true
Attachment #249722 - Flags: review?(bugzilla-mozilla)
I don't like patch v2. The logic should be done in show_bug.cgi.
Attached patch patch - v3 (obsolete) — Splinter Review
Implement LpSolit's way.
Attachment #249722 - Attachment is obsolete: true
Attachment #249723 - Flags: review?(bugzilla-mozilla)
Attachment #249722 - Flags: review?(bugzilla-mozilla)
Comment on attachment 249723 [details] [diff] [review]
patch - v3

>Index: template/en/default/global/per-bug-queries.html.tmpl

>-        <input type="text" name="bug_ids" size="12" maxlength="80">
>+        <input type="text" name="bug_ids" size="12" maxlength="80"
>+         [%- " value=\"$bugids\"" IF bugids %]>

#   Failed test '(en/default) template/en/default/global/per-bug-queries.html.tmpl has unfiltered directives:
#   91:- " value=\"$bugids\"" IF bugids 
# --ERROR'
#   in t/008filter.t at line 131.
Attachment #249723 - Flags: review?(bugzilla-mozilla) → review-
Attached patch patch - v4Splinter Review
Add directive to filterexceptions.pl.
Attachment #249723 - Attachment is obsolete: true
Attachment #249725 - Flags: review?(bugzilla-mozilla)
Attachment #249725 - Flags: review?(bugzilla-mozilla) → review+
Flags: approval?
Severity: trivial → enhancement
Flags: approval? → approval+
Checking in show_bug.cgi;
/cvsroot/mozilla/webtools/bugzilla/show_bug.cgi,v  <--  show_bug.cgi
new revision: 1.50; previous revision: 1.49
done
Checking in template/en/default/global/per-bug-queries.html.tmpl;
/cvsroot/mozilla/webtools/bugzilla/template/en/default/global/per-bug-queries.html.tmpl,v  <--  per-bug-queries.html.tmpl
new revision: 1.10; previous revision: 1.9
done
Checking in template/en/default/filterexceptions.pl;
/cvsroot/mozilla/webtools/bugzilla/template/en/default/filterexceptions.pl,v  <--  filterexceptions.pl
new revision: 1.92; previous revision: 1.91
done
Status: ASSIGNED → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: