https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42613

--- Comment #1 from David Cook <[email protected]> ---
Created attachment 199172
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=199172&action=edit
Bug 42613: Fix javascript error

This change adds the "optional chaining ?." operator so that it returns
undefined
instead of throwing an error.

Test plan:
0. Do NOT apply the patch
1. Create a Subscription in the Serials module
2. Open your F12 tools
3. Note on subscription-detail.pl that there is a Javascript error

4. Apply the patch
5. Refresh the page and note that there is no longer a Javascript error

6. To test that the datatable actually works, create a basket for a vendor
and create an order for that basket using "From subscription" and choose
your subscription

7. Reload subscription-detail.pl and click on "Acquisition details"
8. Note that the DataTable appears (and there's still no Javascript errors)

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to