Bugzilla – Attachment 102562 Details for
Bug 24159
Allow daysMode for calculating due and renewal dates to be set at the circulation rules level
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 24159: Fix one occurrence in updatedatabase.pl
Bug-24159-Fix-one-occurrence-in-updatedatabasepl.patch (text/plain), 1.29 KB, created by
PTFS Europe Sandboxes
on 2020-04-08 11:48:05 UTC
(
hide
)
Description:
Bug 24159: Fix one occurrence in updatedatabase.pl
Filename:
MIME Type:
Creator:
PTFS Europe Sandboxes
Created:
2020-04-08 11:48:05 UTC
Size:
1.29 KB
patch
obsolete
>From 20014a6c3e7a462e23df09998511bf09cbf93bca Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Thu, 12 Mar 2020 09:00:15 +0100 >Subject: [PATCH] Bug 24159: Fix one occurrence in updatedatabase.pl > >Here we just want to get the value from the syspref, the circ rule does >not exist yet. > >Signed-off-by: Simon Perry <simon.perry@itcarlow.ie> >--- > installer/data/mysql/updatedatabase.pl | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl >index 686817e71b..2a9b942256 100755 >--- a/installer/data/mysql/updatedatabase.pl >+++ b/installer/data/mysql/updatedatabase.pl >@@ -14374,7 +14374,7 @@ if( CheckVersion( $DBversion ) ) { > > my $expirationdate = dt_from_string($hold->{waitingdate}); > if ( C4::Context->preference("ExcludeHolidaysFromMaxPickUpDelay") ) { >- my $calendar = Koha::Calendar->new( branchcode => $hold->{branchcode} ); >+ my $calendar = Koha::Calendar->new( branchcode => $hold->{branchcode}, days_mode => C4::Context->preference('useDaysMode') ); > $expirationdate = $calendar->days_forward( $expirationdate, $max_pickup_delay ); > } else { > $expirationdate->add( days => $max_pickup_delay ); >-- >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 24159
:
99758
|
99759
|
99760
|
99761
|
99762
|
100608
|
100609
|
100610
|
100611
|
100612
|
100613
|
100614
|
100615
|
101053
|
101054
|
101556
|
101649
|
101698
|
102009
|
102148
|
102303
|
102554
|
102555
|
102556
|
102557
|
102558
|
102559
|
102560
|
102561
|
102562
|
102563
|
104197
|
104198
|
104199
|
104200
|
104201
|
104202
|
104203
|
104204
|
106007
|
106008
|
106013
|
106014
|
106015
|
106016
|
106017
|
106018
|
106019
|
106020
|
106021
|
106022