Bugzilla – Attachment 119278 Details for
Bug 26498
Add option to set a default expire date for holds at reservation time
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 26498: Add default values
Bug-26498-Add-default-values.patch (text/plain), 968 bytes, created by
Jonathan Druart
on 2021-04-07 12:33:19 UTC
(
hide
)
Description:
Bug 26498: Add default values
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2021-04-07 12:33:19 UTC
Size:
968 bytes
patch
obsolete
>From f69b140ff24936ff1c8ef60f4c36a60ef3b3ea2a Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Wed, 7 Apr 2021 14:32:12 +0200 >Subject: [PATCH] Bug 26498: Add default values > >Just in case >--- > Koha/Hold.pm | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > >diff --git a/Koha/Hold.pm b/Koha/Hold.pm >index 46aee1aace..a7455a44a4 100644 >--- a/Koha/Hold.pm >+++ b/Koha/Hold.pm >@@ -606,9 +606,9 @@ sub store { > sub _set_default_expirationdate { > my $self = shift; > >- my $period = C4::Context->preference('DefaultHoldExpirationdatePeriod'); >+ my $period = C4::Context->preference('DefaultHoldExpirationdatePeriod') || 0; > my $timeunit = >- C4::Context->preference('DefaultHoldExpirationdateUnitOfTime'); >+ C4::Context->preference('DefaultHoldExpirationdateUnitOfTime') || 'days'; > > $self->expirationdate( > dt_from_string( $self->reservedate )->add( $timeunit => $period ) ); >-- >2.20.1
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 26498
:
114057
|
114524
|
114663
|
117127
|
117472
|
117542
|
117543
|
118676
|
118677
|
118678
| 119278