Bugzilla – Attachment 85528 Details for
Bug 18957
Item renewed online does not show the time of renewal
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 18957: Record the time part of the last renewed date
Bug-18957-Record-the-time-part-of-the-last-renewed.patch (text/plain), 1.07 KB, created by
Jonathan Druart
on 2019-02-22 14:09:02 UTC
(
hide
)
Description:
Bug 18957: Record the time part of the last renewed date
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2019-02-22 14:09:02 UTC
Size:
1.07 KB
patch
obsolete
>From 31e2e06acea7026daec13b10bd9421cf98459168 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Fri, 22 Feb 2019 11:06:46 -0300 >Subject: [PATCH] Bug 18957: Record the time part of the last renewed date > >issues.lastreneweddate is a datetime and we could record the time part >of the date. > >Test plan: >Renew an issue >note that the time part of the last renewed date is set correctly >--- > C4/Circulation.pm | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/C4/Circulation.pm b/C4/Circulation.pm >index fa082104a1..3c1d6761e2 100644 >--- a/C4/Circulation.pm >+++ b/C4/Circulation.pm >@@ -2816,7 +2816,7 @@ sub AddRenewal { > my $itemnumber = shift or return; > my $branch = shift; > my $datedue = shift; >- my $lastreneweddate = shift || DateTime->now(time_zone => C4::Context->tz)->ymd(); >+ my $lastreneweddate = shift || DateTime->now(time_zone => C4::Context->tz); > > my $item = GetItem($itemnumber) or return; > my $item_object = Koha::Items->find( $itemnumber ); # Should replace $item >-- >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 18957
:
85527
|
85528
|
85565
|
85566
|
85598
|
85599