Bug 24542 - Checkout page - Can't locate object method "search" via package "Koha::Account::DebitTypes"
Summary: Checkout page - Can't locate object method "search" via package "Koha::Accoun...
Status: CLOSED FIXED
Alias: None
Product: Koha
Classification: Unclassified
Component: Circulation (show other bugs)
Version: unspecified
Hardware: All All
: P5 - low blocker (vote)
Assignee: Jonathan Druart
QA Contact: Martin Renvoize
URL:
Keywords:
Depends on: 23049
Blocks:
  Show dependency treegraph
 
Reported: 2020-01-30 09:49 UTC by Jonathan Druart
Modified: 2021-06-14 21:29 UTC (History)
4 users (show)

See Also:
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


Attachments
Bug 24542: (bug 23049 follow-up) Add missing use statement in Koha::Account (965 bytes, patch)
2020-01-30 09:53 UTC, Jonathan Druart
Details | Diff | Splinter Review
Bug 24542: (bug 23049 follow-up) Add missing use statement in Koha::Account (1.01 KB, patch)
2020-01-30 10:01 UTC, Martin Renvoize
Details | Diff | Splinter Review

Note You need to log in before you can comment on or make changes to this bug.
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