One of the fallbacks in the _check_for_existing_bib routine within Koha::EDI attempts to convert a given ISBN13 into it's ISBN10 equivalent and then search for it. However, not all ISBN13's have an ISBN10 equivalent and Business::ISBN returns 'undef' instead of a new Business::ISBN object if you attempt to do this conversion. This results in uncaught EDI failures and noise in the logs when such an ISBN reaches this point in the code path.
Created attachment 84861 [details] [review] Bug 22294: Check return of as_isbn10 before calling methods on it
Created attachment 93668 [details] [review] Bug 22294: Check return of as_isbn10 before calling methods on it Signed-off-by: Brendan Gallagher <brendan@bywatersolutions.com>
Created attachment 93755 [details] [review] Bug 22294: Check return of as_isbn10 before calling methods on it Signed-off-by: Brendan Gallagher <brendan@bywatersolutions.com> Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Nice work! Pushed to master for 19.11.00