https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=41419 --- Comment #10 from Hammat wele <hammat.wele@inlibro.com> --- Created attachment 207386 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=207386&action=edit Bug 41419 - Error javascript undefined is not valid JSON when showing the order edit modal in orderreceive.tt To reproduce 1. Go to Acquisitions → New vendor, enter a name, check Vendor is Active, and click Save. 2. Click the name of the vendor you just created in the table. 3. Click New → Basket, enter a basket name, and click Save. 4. Click Add to basket → From a new (empty) record. Enter a title, add an item, and click Save. 5. Click Close basket. 6. Click Receive shipments, enter a number in the Vendor invoice field, and click Next. 7. Click Receive for the created line. 8. Open the browser console. 9. In the modal, tick the Receive? checkbox for all the lines, then click Confirm 10. Go to the previous page → The console shows the error: undefined is not valid JSON at JSON.parse was shown 11. Apply the patch 12. Go to Acquisitions → Search for the vandor created on step 2 13. Repeat step 3, 4, 5, 6, 7, 8, 9, 10 → There is no js error -- You are receiving this mail because: You are watching all bug changes.