[Koha-bugs] [Bug 10428] undefined check in add additem.pl
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Fri Jun 7 14:51:00 CEST 2013
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=10428
Kyle M Hall <kyle at bywatersolutions.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #18724|0 |1
is obsolete| |
--- Comment #2 from Kyle M Hall <kyle at bywatersolutions.com> ---
Created attachment 18737
-->
http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=18737&action=edit
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 at bywatersolutions.com>
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list