Koha-clms/cataloguing
Fridolyn SOMERS 3390a6efc7 Bug 10428: undefined check in add additem.pl
In additem.pl, in the code that generates item form you find:

@values = $itemrecord->field($tag)->subfield($subtag) if ($itemrecord && defined($itemrecord->field($tag)->subfield($subtag)));

This patch adds the check of $itemrecord->field($tag) undef.
I did not found a way to test it because item tag is always defined
when editing an item, but it would be safer/prettier to add this check.

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Passed-QA-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
(cherry picked from commit e31b158245)
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
(cherry picked from commit 54d414ee2d)
Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com>
(cherry picked from commit 54d414ee2d)
2013-08-02 17:28:45 -03:00
..
value_builder Bug 7054 - NORMARC: Fix default for 000 position 17 2013-05-09 19:14:39 +12:00
addbiblio.pl Bug 5333 - z3950 normalization should apply only on UNIMARC 2013-03-11 22:05:20 +13:00
addbooks.pl Bug 8172: Followup: Removes useless empty params 2012-08-29 15:38:59 +02:00
additem.pl Bug 10428: undefined check in add additem.pl 2013-08-02 17:28:45 -03:00
linkitem.pl Bug 5528: Analytic records support 2011-10-13 10:03:39 +13:00
merge.pl Bug 8862 follow-up s/\t/4spaces/g 2012-10-12 22:19:25 +02:00
merge_ajax.pl Bug 8860 - can't merge if you don't have fast cataloging permissions 2012-10-05 16:51:32 +02:00
moveitem.pl Bug 5718 : fix permission of moveitem = edit_items needed 2011-02-09 09:33:36 +13:00
plugin_launcher.pl Bug 7356 - Fix various typos and mis-spellings 2012-01-13 11:51:26 +01:00
ysearch.pl Bug 7400: Add auto-completion on auth_finder 2012-03-19 18:20:30 +01:00
z3950_search.pl Bug 8570 follow-up removing tabs & improving indentation 2012-10-09 17:34:58 +02:00