Closed
Bug 272321
Opened 20 years ago
Closed 19 years ago
action should default to edit in editproducts.cgi if a product is passed without an action
Categories
(Bugzilla :: Administration, task)
Tracking
()
RESOLVED
FIXED
Bugzilla 2.20
People
(Reporter: timeless, Assigned: LpSolit)
References
()
Details
Attachments
(1 file)
3.02 KB,
patch
|
Wurblzap
:
review+
|
Details | Diff | Splinter Review |
steps: 1. log out 2. visit url https://bugzilla.mozilla.org/editproducts.cgi?product=mozilla.org 3. log in (because you have to) 3' expect to reach: https://bugzilla.mozilla.org/editproducts.cgi?product=mozilla.org 3` actually reach: https://bugzilla.mozilla.org/editproducts.cgi
ok, it seems the cgi expects &action=edit, that's unreasonable, please consider this a request to infer that.
Comment 2•20 years ago
|
||
Sounds reasonable to me.
Status: UNCONFIRMED → NEW
Ever confirmed: true
OS: Windows XP → All
Hardware: PC → All
Summary: go ahead and login forgets params to editproducts → action should default to edit in editparams.cgi if a product is passed without an action
Assignee | ||
Comment 3•19 years ago
|
||
A nice side effect is that it fixes bug 258777 too. :) Note that editproducts.cgi needs some cleanup. This will be done in bug 286294.
Summary: action should default to edit in editparams.cgi if a product is passed without an action → action should default to edit in editproducts.cgi if a product is passed without an action
Comment 4•19 years ago
|
||
Comment on attachment 178168 [details] [diff] [review] patch, v1 Good as is. Works. >Index: editproducts.cgi >-unless ($action) { >+unless ($action || $product) { Nit, tinted by personal taste: this stretches the |unless| a little too far imho... I think it reads better as |if (!$action && !$product)| or |if (!($action || $product))|. You could do me a favour fixing this on checkin :) This fixes bug 258777 in a different way than I expected. You find the classification by product name, so your fix implies that product names are unique accross classifications. This is currently required anyway, so I'm fine with it. Approver?
Attachment #178168 -
Flags: review?(wurblzap) → review+
Updated•19 years ago
|
Flags: approval?
Target Milestone: --- → Bugzilla 2.20
Updated•19 years ago
|
Flags: approval? → approval+
Assignee | ||
Comment 5•19 years ago
|
||
Checking in editproducts.cgi; /cvsroot/mozilla/webtools/bugzilla/editproducts.cgi,v <-- editproducts.cgi new revision: 1.77; previous revision: 1.76 done
Status: ASSIGNED → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
Updated•12 years ago
|
QA Contact: matty_is_a_geek → default-qa
You need to log in
before you can comment on or make changes to this bug.
Description
•