[Koha-bugs] [Bug 10428] New: undefined check in add additem.pl

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Jun 7 10:17:20 CEST 2013


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=10428

            Bug ID: 10428
           Summary: undefined check in add additem.pl
    Classification: Unclassified
 Change sponsored?: ---
           Product: Koha
           Version: master
          Hardware: All
                OS: All
            Status: NEW
          Severity: trivial
          Priority: P5 - low
         Component: Cataloging
          Assignee: gmcharlt at gmail.com
          Reporter: fridolyn.somers at biblibre.com
                CC: m.de.rooy at rijksmuseum.nl

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 code is missing 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.

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list