[Koha-bugs] [Bug 19004] New: Patrons.t fails when item-level_itypes is not set

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Mon Jul 31 08:34:57 CEST 2017


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19004

            Bug ID: 19004
           Summary: Patrons.t fails when item-level_itypes is not set
 Change sponsored?: ---
           Product: Koha
           Version: master
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P5 - low
         Component: Test Suite
          Assignee: chris at bigballofwax.co.nz
          Reporter: m.de.rooy at rijksmuseum.nl
        QA Contact: testopia at bugs.koha-community.org

Problem is that TestBuilder generates two biblio records, one via
item.biblionumber and one via items.biblioitemnumber =>
biblioitem.biblionumber.
(Which actually is bad design; the biblionumber should not be in the items
table.) The biblio generated via items.biblionumber has no biblioitem.

AddReturn is called in Patrons.t. When item-level_itypes is false, it gets the
itemtype from $biblio->biblioitem->itemtype. Which generates an error on the
biblio since it has not biblioitem.

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


More information about the Koha-bugs mailing list