Bugzilla – Attachment 68330 Details for
Bug 19487
Internal server error when writing off lost fine for item not checked out
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 19487: Refetch the object to get up-to-date values
Bug-19487-Refetch-the-object-to-get-up-to-date-val.patch (text/plain), 896 bytes, created by
Jonathan Druart
on 2017-10-20 18:57:02 UTC
(
hide
)
Description:
Bug 19487: Refetch the object to get up-to-date values
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2017-10-20 18:57:02 UTC
Size:
896 bytes
patch
obsolete
>From 4bace0f59fae9cc170dd5f360b05c30b4906ea83 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Fri, 20 Oct 2017 15:56:20 -0300 >Subject: [PATCH] Bug 19487: Refetch the object to get up-to-date values > >This has been raised by failures on t/db_dependent/Circulation/issue.t >(thanks tests!) >--- > C4/Circulation.pm | 3 +++ > 1 file changed, 3 insertions(+) > >diff --git a/C4/Circulation.pm b/C4/Circulation.pm >index 4dd3020ffb..9773f69b1b 100644 >--- a/C4/Circulation.pm >+++ b/C4/Circulation.pm >@@ -2172,6 +2172,9 @@ sub MarkIssueReturned { > # Update the returndate > $dbh->do( $query, undef, @bind ); > >+ # We just updated the returndate, so we need to refetch $issue >+ $issue->discard_changes; >+ > # Create the old_issues entry > my $old_checkout = Koha::Old::Checkout->new($issue->unblessed)->store; > >-- >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 19487
:
68275
|
68293
|
68294
|
68312
|
68313
|
68314
| 68330