Bugzilla – Attachment 170110 Details for
Bug 33641
We should record return library in old checkouts (oldissues)
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 33641: Code changes
Bug-33641-Code-changes.patch (text/plain), 1.10 KB, created by
Eric Garcia
on 2024-08-06 19:15:09 UTC
(
hide
)
Description:
Bug 33641: Code changes
Filename:
MIME Type:
Creator:
Eric Garcia
Created:
2024-08-06 19:15:09 UTC
Size:
1.10 KB
patch
obsolete
>From 41738321d04aeb7a25c2f3c359adb0243a4c4c1d Mon Sep 17 00:00:00 2001 >From: Eric Garcia <cubingguy714@gmail.com> >Date: Tue, 6 Aug 2024 19:01:00 +0000 >Subject: [PATCH] Bug 33641: Code changes > >To test: > >1. Apply patch, restart_all, updatedatabase >2. Check out an item to a patron >3. Query the database > - select return_branch from issues; should return NULL > - select branchcode from issues; should return the branchcode of the library you checkout the item out from > - select return_branch from old_issues; should match the branchcode from the previous query >--- > C4/Circulation.pm | 1 + > 1 file changed, 1 insertion(+) > >diff --git a/C4/Circulation.pm b/C4/Circulation.pm >index 70ccd7fb54..4566b4267e 100644 >--- a/C4/Circulation.pm >+++ b/C4/Circulation.pm >@@ -2645,6 +2645,7 @@ sub MarkIssueReturned { > $issue->returndate( \'NOW()' )->store->discard_changes; # update and refetch > } > >+ $issue->return_branch(C4::Context->userenv->{'branch'}); > # Create the old_issues entry > my $old_checkout = Koha::Old::Checkout->new($issue->unblessed)->store; > >-- >2.30.2
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 33641
:
170105
|
170106
|
170107
|
170108
|
170109
|
170110
|
170111
|
170138
|
170139
|
170140
|
170141
|
173562
|
173563
|
173564
|
173565
|
174510
|
174511
|
174512
|
174513
|
174514
|
174536
|
174538
|
174569
|
174570
|
174571
|
174572
|
174573
|
174574
|
174584
|
174585