Closed Bug 194472 Opened 22 years ago Closed 21 years ago

"Product has no components" error should link to that product's component editor

Categories

(Bugzilla :: User Interface, defect)

2.17.6
defect
Not set
trivial

Tracking

()

RESOLVED FIXED
Bugzilla 2.18

People

(Reporter: justdave, Assigned: goobix)

Details

Attachments

(1 file, 2 obsolete files)

When you enter a new bug, and you choose a product that has no components in it,
you get an error message telling you there are not components defined in that
product.  If you have editcomponents privs, it also gives you a link to
editcomponents.cgi.  Except that it links to the main product list, so you have
to choose the product all over again (you just did that in order to get the
error message).  The error message should link directly to the component editor
for the product in question.
Summary: "Product has no components" error should link to that product's component list → "Product has no components" error should link to that product's component editor
Component: Creating/Changing Bugs → User Interface
The User Interface component now belongs to Gerv.  Reassigning all UNCONFIRMED
and NEW (but not ASSIGNED) bugs currently owned by Myk (the previous component
owner) to Gerv.
Assignee: myk → gerv
Reassigning back to Myk.  That stuff about Gerv taking over the User Interface
component turned out to be short-lived.  Please pardon our confusion, and I'm
very sorry about the spam.
Assignee: gerv → myk
I'll take this.
Assignee: myk → caduvall
Severity: normal → trivial
Target Milestone: --- → Bugzilla 2.18
Attached patch Link goes to the desired place (obsolete) — Splinter Review
Pass in the product to the error message.
Attachment #134871 - Flags: review?(justdave)
Can you reproduce this in some version of Bugzilla? On CVS tip, the
enterable_products list never contains products without components, so I can't
come up with a situation that would even give that error message.
Comment on attachment 134871 [details] [diff] [review]
Link goes to the desired place

>-      <a href="editcomponents.cgi">Create a new component</a>.
>+      <a href="editcomponents.cgi?product=[% product FILTER uri %]">Create a new component</a>.

Make it |FILTER url_quote|, and please wrap the line so that it doesn't exceed
80 chars (if you can).
Attachment #134871 - Flags: review?(justdave) → review-
Note that the recent checkin for bug#228894 contained part of the fix for this patch. I had done 
the changes Jouni suggested, and that part of the fix sneaked into the patch for the other bug - 
sorry.

In bug#228894, I have asked for someone to either retract that part of the change, or apply the 
first part of this patch.
Attached patch Patch version 2 (obsolete) — Splinter Review
Chaduv's patch with jouni's suggestion.
Attachment #134871 - Attachment is obsolete: true
Attached patch Patch version 3Splinter Review
Spliting it like this creates a blank space in the URL at the beginning.

Spliting instead at the first available space in the URL (the alternative would
be to insert a comment in the URL which seems like a dirty hack).
Attachment #140565 - Attachment is obsolete: true
Attachment #140567 - Flags: review?(kiko)
Comment on attachment 140567 [details] [diff] [review]
Patch version 3

Cool!
Attachment #140567 - Flags: review?(kiko) → review+
Assignee: caduvall → vlad987
Flags: approval?
Flags: approval? → approval+
Checking in enter_bug.cgi;
/cvsroot/mozilla/webtools/bugzilla/enter_bug.cgi,v  <--  enter_bug.cgi
new revision: 1.88; previous revision: 1.87
done
Checking in template/en/default/global/user-error.html.tmpl;
/cvsroot/mozilla/webtools/bugzilla/template/en/default/global/user-error.html.tmpl,v
 <--  user-error.html.tmpl
new revision: 1.48; previous revision: 1.47
done
Status: NEW → RESOLVED
Closed: 21 years ago
Resolution: --- → FIXED
Version: 2.17.3 → 2.17.6
QA Contact: matty_is_a_geek → default-qa
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: