Koha-clms/cataloguing
Fridolyn SOMERS 54d414ee2d 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>
2013-07-15 20:13:46 -03:00
..
value_builder Bug 7054 - NORMARC: Fix default for 000 position 17 2013-05-01 07:48:01 -04:00
addbiblio.pl Revert "Merge branch 'bug_6554' into 3.12-master" 2013-04-25 22:37:54 -04:00
addbooks.pl Bug 9239: Allow the use of QueryParser for all queries 2013-03-16 21:32:32 -04:00
additem.pl Bug 10428: undefined check in add additem.pl 2013-07-15 20:13:46 -03:00
linkitem.pl Bug 5528: Analytic records support 2011-10-13 10:03:39 +13:00
merge.pl Bug 7593: Move orders on the destination record when merging 2 records 2013-05-12 10:30:57 -04: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 8278: build the structure with to_json instead of manually. 2013-05-08 09:50:27 -04:00
z3950_search.pl Revert "Merge branch 'bug_6554' into 3.12-master" 2013-04-25 22:37:54 -04:00