Bug 24542

Summary: Checkout page - Can't locate object method "search" via package "Koha::Account::DebitTypes"
Product: Koha Reporter: Jonathan Druart <jonathan.druart>
Component: CirculationAssignee: Jonathan Druart <jonathan.druart>
Status: CLOSED FIXED QA Contact: Martin Renvoize <martin.renvoize>
Severity: blocker    
Priority: P5 - low CC: 1joynelson, gmcharlt, kyle.m.hall, martin.renvoize
Version: unspecified   
Hardware: All   
OS: All   
Change sponsored?: --- Patch complexity: Trivial patch
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
20.05.00, 19.11.03
Bug Depends on: 23049    
Bug Blocks:    
Attachments: Bug 24542: (bug 23049 follow-up) Add missing use statement in Koha::Account
Bug 24542: (bug 23049 follow-up) Add missing use statement in Koha::Account

Description Jonathan Druart 2020-01-30 09:49:12 UTC
From the mailing list
https://lists.katipo.co.nz/pipermail/koha/2020-January/054224.html

Impact 19.11.02 and master.


When trying to checkout items, after choosing a patron by name, the
following page (
https://seattle-intra.theosophicallibrary.org/cgi-bin/koha/circ/circulation.pl?borrowernumber=XX)
returns:

Software error:

Can't locate object method "search" via package "Koha::Account::DebitTypes"
(perhaps you forgot to load "Koha::Account::DebitTypes"?) at
/usr/share/koha/lib/Koha/Account.pm line 674.
Comment 1 Jonathan Druart 2020-01-30 09:53:54 UTC
Created attachment 98142 [details] [review]
Bug 24542: (bug 23049 follow-up) Add missing use statement in Koha::Account

Fix the following error when an item is checked out and that
ManInvInNoissuesCharge is turned off:
Can't locate object method "search" via package "Koha::Account::DebitTypes"

Test plan:
0/ Turn off ManInvInNoissuesCharge
1/ Check an item out
Comment 2 Martin Renvoize 2020-01-30 10:01:32 UTC
Created attachment 98144 [details] [review]
Bug 24542: (bug 23049 follow-up) Add missing use statement in Koha::Account

Fix the following error when an item is checked out and that
ManInvInNoissuesCharge is turned off:
Can't locate object method "search" via package "Koha::Account::DebitTypes"

Test plan:
0/ Turn off ManInvInNoissuesCharge
1/ Check an item out

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Comment 3 Martin Renvoize 2020-01-30 10:02:14 UTC
Yikes, going straight for a QA on this one.. very trivial patch.
Comment 4 Martin Renvoize 2020-01-30 10:03:17 UTC
Nice work everyone!

Pushed to master for 20.05
Comment 5 Joy Nelson 2020-02-10 23:23:03 UTC
Pushed to 19.11.x branch for 19.11.03