Staff catalog item barcode search fails to handle zero matches gracefully

Bug #1896083 reported by Bill Erickson
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Evergreen
Fix Released
Medium
Unassigned
3.5
Fix Released
Medium
Unassigned

Bug Description

Evergreen 3.5 and 3.6

Staff catalog -> Numeric Search -> Item Barcode

Enter a nonexistent barcode in the search form and submit. The progress bar hangs and the console shows the error:

ERROR Error: Uncaught (in promise): TypeError: e.map is not a function
TypeError: e.map is not a function

Working on a patch now.

Revision history for this message
Bill Erickson (berick) wrote :
tags: added: pullrequest
Changed in evergreen:
assignee: Bill Erickson (berick) → nobody
Revision history for this message
Mary Llewellyn (mllewell) wrote :

I have tested this code and consent to signing off on it with my name, Mary Llewellyn and my email address, <email address hidden>

Changed in evergreen:
assignee: nobody → Mary Llewellyn (mllewell)
tags: added: signedoff
Changed in evergreen:
assignee: Mary Llewellyn (mllewell) → nobody
Revision history for this message
Galen Charlton (gmc) wrote :

Pushed to master and rel_3_5. Thanks, Bill and Mary!

Changed in evergreen:
importance: Undecided → Medium
assignee: nobody → Galen Charlton (gmc)
status: New → Fix Committed
assignee: Galen Charlton (gmc) → nobody
Changed in evergreen:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.