Backoffice orders: Endless spinner and error 500 after skipping OC selector #6133
Labels
bug-s4
The bug is annoying, but doesn't prevent from using the platform. Not so many users are impacted.
Description
Observed while testing #6039
Selecting a distributor and an order cycle from that distributor are the first steps to take, when placing backoffice orders.
If the selection of the order cycle is skipped and the user clicks "Next" then the "Add Product" field is broken: attempting to search and choose from a product list from, by inserting characters in the, shows an endless spinner, error 500 on the console and bugsnag is triggered.
See video below.
Expected Behavior
Selecting an OC should be mandatory
Actual Behaviour
The user is "allowed" to skip the choosing-OC step, which breaks the product search function: adding the first letters results in an endless spinner in the search field, error 500 in console and bugsnag error report:
https://app.bugsnag.com/yaycode/openfoodnetwork-uk/errors/5f33a1494da42b00178f81c4?event_id=5f5fa0c5005dfe3cef320000&i=sk&m=nw
Steps to Reproduce
Log in as admin
Animated Gif/Screenshot
Workaround
Selecting the OC, just below the "Add a product" section solves this.
Severity
Proposing bug-s4: it's annoying, but you can use it
Your Environment
Possible Fix
The text was updated successfully, but these errors were encountered: