[Koha-bugs] [Bug 22006] New: Koha::Account::Line->item should return undef if no item linked

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Dec 14 20:11:38 CET 2018


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

            Bug ID: 22006
           Summary: Koha::Account::Line->item should return undef if no
                    item linked
 Change sponsored?: ---
           Product: Koha
           Version: unspecified
          Hardware: All
                OS: All
            Status: ASSIGNED
          Severity: normal
          Priority: P5 - low
         Component: Architecture, internals, and plumbing
          Assignee: jonathan.druart at bugs.koha-community.org
          Reporter: jonathan.druart at bugs.koha-community.org
        QA Contact: testopia at bugs.koha-community.org
        Depends on: 12001

If there is no item linked to an account line, the ->item method should return
undef.
Now it explodes with:
        Carp::croak('DBIC result _type  isn\'t of the _type Item') called at
/home/vagrant/kohaclone/Koha/Object.pm line 102



Exists since the introduction of this method by bug 12001


Referenced Bugs:

https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=12001
[Bug 12001] GetMemberAccountRecords slows down display of patron details and
checkout pages
-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list