Koha-clms/cataloguing
Jonathan Druart 349da224b9 Bug 20829: Handle non-existent barcode when linking to host item
Since commit 2c9aeb9b0f
  Bug 18277: Remove GetBiblionumberFromItemnumber - linkitem

$item is not defined if the barcode is invalid, we should not call
method on it in that case.

Test plan:
- Turn on EasyAnalyticalRecords
- Go to a detail page
- Edit > Link to host item
- Enter an invalid barcode
=> With the patch you get a friendly error message
=> Without this patch it explodes with
Can't call method "itemnumber" on an undefined value at
/home/vagrant/kohaclone/cataloguing/linkitem.pl line 86.

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
(cherry picked from commit b004818515)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
2018-06-14 15:13:51 +02:00
..
value_builder Bug 19968: Add missing use Date::Calc statement 2018-01-23 01:45:38 +00:00
addbiblio.pl Bug 19528: (QA follow-up) Adjust language for readability 2017-10-27 14:09:04 -03:00
addbooks.pl Bug 19987: If no z39.50/SRU servers the button should not show 2018-01-23 02:01:26 +00:00
additem.pl Bug 12363: Add a switch to mark|do not mark items as returned when lost 2017-10-27 13:57:14 -03:00
editor.pl Bug 11559: (QA followup) fix several small issues 2015-10-27 12:25:01 -03:00
linkitem.pl Bug 20829: Handle non-existent barcode when linking to host item 2018-06-14 15:13:51 +02:00
merge.pl Bug 18593: Move suggestions when bibliographic records are merged 2018-04-23 22:29:01 +00:00
merge_ajax.pl Bug 14588: Simplify merge_ajax.pl 2015-08-21 10:21:39 -03:00
moveitem.pl Bug 18262: Koha::Biblio - Remove GetBiblioData - part 1 2017-07-14 12:22:23 -03:00
plugin_launcher.pl Bug 16154: CGI->multi_param - Force scalar context 2016-04-26 23:16:43 +00:00
ysearch.pl Bug 9978: Replace license header with the correct license (GPLv3+) 2015-04-20 09:59:38 -03:00
z3950_auth_search.pl Bug 16154: CGI->multi_param - Force scalar context 2016-04-26 23:16:43 +00:00
z3950_search.pl Bug 16154: CGI->multi_param - Declare a list 2016-04-26 23:16:42 +00:00