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 Signed-off-by: Owen Leonard <oleonard@myacpl.org> Signed-off-by: Josef Moravec <josef.moravec@gmail.com> Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
This commit is contained in:
parent
54fd0718da
commit
4585228ea9
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue