[Koha-bugs] [Bug 6196] New: cant edit items (Can't call method "subfield" error)

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Apr 15 10:58:14 CEST 2011


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

             Bug #: 6196
           Summary: cant edit items (Can't call method "subfield" error)
    Classification: Unclassified
 Change sponsored?: ---
           Product: Koha
           Version: rel_3_2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P5
         Component: Cataloging
        AssignedTo: gmcharlt at gmail.com
        ReportedBy: mason at kohaaloha.com
         QAContact: koha-bugs at lists.koha-community.org
                CC: ian.walls at bywatersolutions.com


when editing an existing item on koha-3.2.6 (and 3.4 head)

i get this error when updating an item (but not others)

Software error:

Can't call method "subfield" on an undefined value at
/home/mason/git/ebc/cataloguing/additem.pl line 607.

however, i have a created small patch to fix this problem, 

the patch has a more explicit check for the existent of a field, before
attempting to access its subfields (which caused the error)

fyi: i rewrote the code block, so it now reads a little easier

-- 
Configure bugmail: http://bugs.koha-community.org/bugzilla3/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA Contact for the bug.


More information about the Koha-bugs mailing list