Closed Bug 272321 Opened 21 years ago Closed 20 years ago

action should default to edit in editproducts.cgi if a product is passed without an action

Categories

(Bugzilla :: Administration, task)

2.17.6
task
Not set
normal

Tracking

()

RESOLVED FIXED
Bugzilla 2.20

People

(Reporter: timeless, Assigned: LpSolit)

References

()

Details

Attachments

(1 file)

ok, it seems the cgi expects &action=edit, that's unreasonable, please consider this a request to infer that.
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
Attached patch patch, v1Splinter Review
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.
Assignee: justdave → LpSolit
Status: NEW → ASSIGNED
Attachment #178168 - Flags: review?(wurblzap)
Blocks: 258777
Blocks: 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
No longer blocks: 286294
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+
Flags: approval?
Target Milestone: --- → Bugzilla 2.20
Flags: approval? → approval+
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: 20 years ago
Resolution: --- → FIXED
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

Created:
Updated:
Size: