Bugzilla – Attachment 157129 Details for
Bug 29074
DefaultHoldExpirationdatePeriod blank value interpreted as zero
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 29074: Prevent undef warning when DefaultHoldExpirationdate is read
Bug-29074-Prevent-undef-warning-when-DefaultHoldEx.patch (text/plain), 1.33 KB, created by
Lucas Gass
on 2023-10-13 16:47:32 UTC
(
hide
)
Description:
Bug 29074: Prevent undef warning when DefaultHoldExpirationdate is read
Filename:
MIME Type:
Creator:
Lucas Gass
Created:
2023-10-13 16:47:32 UTC
Size:
1.33 KB
patch
obsolete
>From a1224b13dc432243319b9b3ae8b1cc33291621eb Mon Sep 17 00:00:00 2001 >From: Emmi Takkinen <emmi.takkinen@koha-suomi.fi> >Date: Fri, 13 Oct 2023 14:30:36 +0300 >Subject: [PATCH] Bug 29074: Prevent undef warning when > DefaultHoldExpirationdate is read > >Test plan: >Repeat test plan from first patch. >Also prove t/db_dependent/Hold.t. > >Sponsored-by: Koha-Suomi Oy >Signed-off-by: Lucas Gass <lucas@bywatersolutions.com> >--- > Koha/Hold.pm | 2 ++ > 1 file changed, 2 insertions(+) > >diff --git a/Koha/Hold.pm b/Koha/Hold.pm >index 5c818ddfee8..4dfc7d2c248 100644 >--- a/Koha/Hold.pm >+++ b/Koha/Hold.pm >@@ -911,6 +911,7 @@ sub store { > > if ( > C4::Context->preference('DefaultHoldExpirationdate') >+ && defined C4::Context->preference('DefaultHoldExpirationdatePeriod') > && C4::Context->preference('DefaultHoldExpirationdatePeriod') ne '' > && !$self->expirationdate > ) >@@ -926,6 +927,7 @@ sub store { > if ( exists $updated_columns{reservedate} ) { > if ( > C4::Context->preference('DefaultHoldExpirationdate') >+ && defined C4::Context->preference('DefaultHoldExpirationdatePeriod') > && C4::Context->preference('DefaultHoldExpirationdatePeriod') ne '' > && ! exists $updated_columns{expirationdate} > ) >-- >2.30.2
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 29074
:
144572
|
154484
|
154813
|
157068
|
157069
|
157128
| 157129