Bugzilla – Attachment 95609 Details for
Bug 24013
Transferring a checked out item gives a software error
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 24013: Fix transferbook if item is checked out
Bug-24013-Fix-transferbook-if-item-is-checked-out.patch (text/plain), 1.35 KB, created by
Jonathan Druart
on 2019-11-20 10:56:30 UTC
(
hide
)
Description:
Bug 24013: Fix transferbook if item is checked out
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2019-11-20 10:56:30 UTC
Size:
1.35 KB
patch
obsolete
>From 4c504409e841af7b845e749de3b1b306bebb960d Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Wed, 20 Nov 2019 11:52:04 +0100 >Subject: [PATCH] Bug 24013: Fix transferbook if item is checked out > >Wrong conflict resolution, the following > commit 6eade474ed3a84a5ba372a26ac27bf9fb4bd2299 > Bug 18276: Remove GetBiblioFromItemNumber - Easy ones >restored a previous change from > commit 546379cc92b733cb29a0b70247a72c770afdad26 > Bug 17680: C4::Circulation - Remove GetItemIssue, simple calls > >Not that "easy" or "simple"... > >Test plan: >Run the test before and after this patch. >--- > C4/Circulation.pm | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/C4/Circulation.pm b/C4/Circulation.pm >index ad617c846e..cf991654ee 100644 >--- a/C4/Circulation.pm >+++ b/C4/Circulation.pm >@@ -319,7 +319,6 @@ sub transferbook { > } > > my $itemnumber = $item->itemnumber; >- my $issue = GetOpenIssue($itemnumber); > # get branches of book... > my $hbr = $item->homebranch; > my $fbr = $item->holdingbranch; >@@ -345,6 +344,7 @@ sub transferbook { > } > > # check if it is still issued to someone, return it... >+ my $issue = Koha::Checkouts->find({ itemnumber => $itemnumber }); > if ( $issue ) { > AddReturn( $barcode, $fbr ); > $messages->{'WasReturned'} = $issue->borrowernumber; >-- >2.11.0
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 24013
:
95608
|
95609
|
95695
|
95696
|
95755
|
95756