Open Bug 2007801 Opened 20 hours ago

The component field in request.cgi is empty unless action=queue is part of the URL

Categories

(Bugzilla :: Attachments & Requests, defect)

5.0.4.1
defect

Tracking

()

ASSIGNED
Bugzilla 5.0

People

(Reporter: LpSolit, Assigned: LpSolit)

Details

Attachments

(1 file)

Attached patch patch, v1Splinter Review

If you reach request.cgi with no parameters, the component field is empty, because the selectProduct() method in js/productform.js removes all items on page load. No idea why (race condition?).
If you pass request.cgi?action=queue, then the components field is filled correctly and selectProduct() works correctly.

The only difference between both cases is that in the 2nd case, the list of products is passed by request.cgi instead of letting template/en/default/global/product-select.html.tmpl get the list itself. My patch fixes this.

Attachment #9534966 - Flags: review?(justdave)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: