Bugzilla – Attachment 138984 Details for
Bug 31328
Make Koha::Item->get_transfer* use Koha::Item::Transfers->filter_by_current
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 31328: Call get_transfers from get_transfer
Bug-31328-Call-gettransfers-from-gettransfer.patch (text/plain), 1.03 KB, created by
Jonathan Druart
on 2022-08-10 13:38:11 UTC
(
hide
)
Description:
Bug 31328: Call get_transfers from get_transfer
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2022-08-10 13:38:11 UTC
Size:
1.03 KB
patch
obsolete
>From 68f2271ab8234ce7bfd65d4da5bc4cc41f8dcc58 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Wed, 10 Aug 2022 15:33:13 +0200 >Subject: [PATCH] Bug 31328: Call get_transfers from get_transfer > >Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >--- > Koha/Item.pm | 7 +------ > 1 file changed, 1 insertion(+), 6 deletions(-) > >diff --git a/Koha/Item.pm b/Koha/Item.pm >index d76722414d6..68b590860a9 100644 >--- a/Koha/Item.pm >+++ b/Koha/Item.pm >@@ -570,12 +570,7 @@ we still expect the item to end up at a final location eventually. > sub get_transfer { > my ($self) = @_; > >- my $transfers_rs = Koha::Item::Transfers >- ->_new_from_dbic(scalar $self->_result->branchtransfers) >- ->filter_by_current >- ->search( {}, { order_by => [ { -desc => 'datesent' }, { -asc => 'daterequested' } ], rows => 1 } ); >- >- return $transfers_rs->next; >+ return $self->get_transfers->search( {}, { rows => 1 } )->next; > } > > =head3 get_transfers >-- >2.25.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 31328
:
138899
|
138983
|
138984
|
138990
|
138991