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: [email protected]
        ReportedBy: [email protected]
         QAContact: [email protected]
                CC: [email protected]


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.
_______________________________________________
Koha-bugs mailing list
[email protected]
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to