https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=41419
--- Comment #14 from babar junaid <[email protected]> --- Tested on main (8199093) in koha-testing-docker, single order receive (AcqCreateItem = ordering, one item on the order). Before the patch: tick Receive? in the modal and click Confirm -> the browser console shows 'SyntaxError: "undefined" is not valid JSON' straight after Confirm (no need to go back a page). The order is still received correctly, so the error is in the page only. Cause, for QA: save_row() calls api.draw(); with only_one_order the drawCallback runs again and opens the modal a second time. That show.bs.modal has no relatedTarget and the row is gone, so JSON.parse(JSON.stringify(undefined)) throws. After the patch: no console error (two runs), both orders received (status complete, quantityreceived 1). Also checked: closing the modal with Esc and reopening it with Edit still works, before and after. QA tools pass. I changed the commit title from 'Bug 41419 - ' to 'Bug 41419: ' (QA tools flagged it); no other change. -- You are receiving this mail because: You are watching all bug changes. _______________________________________________ Koha-bugs mailing list -- [email protected] To unsubscribe send an email to [email protected] website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
