Bugzilla – Attachment 126958 Details for
Bug 29290
Add routes to fetch checkouts for a given biblio
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 29290: Rename relationships borrower => patron
Bug-29290-Rename-relationships-borrower--patron.patch (text/plain), 2.42 KB, created by
Martin Renvoize (ashimema)
on 2021-10-27 08:37:56 UTC
(
hide
)
Description:
Bug 29290: Rename relationships borrower => patron
Filename:
MIME Type:
Creator:
Martin Renvoize (ashimema)
Created:
2021-10-27 08:37:56 UTC
Size:
2.42 KB
patch
obsolete
>From 20c18068389a5fa07a268a5f8c859bd026af06d4 Mon Sep 17 00:00:00 2001 >From: Tomas Cohen Arazi <tomascohen@theke.io> >Date: Wed, 20 Oct 2021 16:59:38 -0300 >Subject: [PATCH] Bug 29290: Rename relationships borrower => patron > >This is a trivial change that is required to be able to embed patron >objects in the (old) checkout object. > >Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> >Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net> >Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> >--- > Koha/Checkout.pm | 2 +- > Koha/Old/Checkout.pm | 2 +- > Koha/Schema/Result/Issue.pm | 2 +- > Koha/Schema/Result/OldIssue.pm | 2 +- > 4 files changed, 4 insertions(+), 4 deletions(-) > >diff --git a/Koha/Checkout.pm b/Koha/Checkout.pm >index cc00194248..6dd98ca3e2 100644 >--- a/Koha/Checkout.pm >+++ b/Koha/Checkout.pm >@@ -102,7 +102,7 @@ Return the patron for who the checkout has been done > > sub patron { > my ( $self ) = @_; >- my $patron_rs = $self->_result->borrower; >+ my $patron_rs = $self->_result->patron; > return Koha::Patron->_new_from_dbic( $patron_rs ); > } > >diff --git a/Koha/Old/Checkout.pm b/Koha/Old/Checkout.pm >index 3cfc30aa6f..441cc7d27d 100644 >--- a/Koha/Old/Checkout.pm >+++ b/Koha/Old/Checkout.pm >@@ -69,7 +69,7 @@ Return the patron for who the checkout has been done > > sub patron { > my ( $self ) = @_; >- my $patron_rs = $self->_result->borrower; >+ my $patron_rs = $self->_result->patron; > return unless $patron_rs; > return Koha::Patron->_new_from_dbic( $patron_rs ); > } >diff --git a/Koha/Schema/Result/Issue.pm b/Koha/Schema/Result/Issue.pm >index 7b4091eead..9fa5c535d6 100644 >--- a/Koha/Schema/Result/Issue.pm >+++ b/Koha/Schema/Result/Issue.pm >@@ -346,7 +346,7 @@ __PACKAGE__->add_columns( > ); > > __PACKAGE__->belongs_to( >- "borrower", >+ "patron", > "Koha::Schema::Result::Borrower", > { borrowernumber => "borrowernumber" }, > { join_type => "LEFT", on_delete => "CASCADE", on_update => "CASCADE" }, >diff --git a/Koha/Schema/Result/OldIssue.pm b/Koha/Schema/Result/OldIssue.pm >index 7d37600caf..83c6db0a21 100644 >--- a/Koha/Schema/Result/OldIssue.pm >+++ b/Koha/Schema/Result/OldIssue.pm >@@ -315,7 +315,7 @@ __PACKAGE__->add_columns( > ); > > __PACKAGE__->belongs_to( >- "borrower", >+ "patron", > "Koha::Schema::Result::Borrower", > { borrowernumber => "borrowernumber" }, > { join_type => "LEFT", on_delete => "CASCADE", on_update => "CASCADE" }, >-- >2.20.1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 29290
:
126617
|
126618
|
126622
|
126625
|
126637
|
126638
|
126639
|
126957
| 126958 |
126959
|
126980
|
126982