[Koha-bugs] [Bug 35386] Renewals via the API are recorded using the branch of the API account used

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Mon Dec 11 15:34:59 CET 2023


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

Brendan Lawlor <blawlor at clamsnet.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |blawlor at clamsnet.org

--- Comment #3 from Brendan Lawlor <blawlor at clamsnet.org> ---
When I tested this out I confirmed before the patch the branch recorded for the
renewal is the API user's homebranch.

When I applied the patch I noticed the system preference RESTAPIRenewalBranch
defaults to 'APIRenew' and when I made a post to
{{base_url}}/api/v1/checkouts/1/renewal
the branch recorded in the statistics table as 'API Renew' According to the
test plan it should default to the branch of the api user.


Also one of the options for RESTAPIRenewalBranch is NULL, which did work to
record the branch in the statistics as NULL, but I'm not sure if that is an
intended option.

The other options I tested worked as expected for:
the branch of the api user
the library the item was checked out from
the items home library
NULL
the patron's home library

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


More information about the Koha-bugs mailing list