]> git.koha-community.org Git - koha.git/commit
Bug 26327: Add ->library method to Koha::*Checkout
authorTomas Cohen Arazi <tomascohen@theke.io>
Mon, 31 Aug 2020 18:25:05 +0000 (15:25 -0300)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Wed, 14 Oct 2020 12:50:06 +0000 (14:50 +0200)
commit7ac340e483923af88426b5061597eca80c5c4363
tree8556e9a99e2470275c6d0b45b13b7ebe701210e4
parent210c62ad8c75a35fe63d1a564f4bb02f6f4b35d1
Bug 26327: Add ->library method to Koha::*Checkout

This patch adds a 'library' relationship to the Issue and OldIssue
resultsets, to be used in the Koha::*Checkout classes corresponding
accessors. This way we will be able to eventually embed and filter on
library fields on the API.

The ->library method is then added to the classes-

To test:
1. Apply this patch
2. Run:
   $ kshell
  k$ prove t/db_dependent/Koha/Old.t t/db_dependent/Koha/Checkout.t
=> SUCCESS: Tests pass!
3. Sign off :-D

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Koha/Checkout.pm
Koha/Old/Checkout.pm
Koha/Schema/Result/Issue.pm
Koha/Schema/Result/OldIssue.pm
t/db_dependent/Koha/Checkout.t [new file with mode: 0644]
t/db_dependent/Koha/Old.t