Bugzilla – Attachment 125910 Details for
Bug 29157
Cannot set date/date-time attributes to NULL
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 29157: Date and Datetime attributes cannot be set NULL
Bug-29157-Date-and-Datetime-attributes-cannot-be-s.patch (text/plain), 947 bytes, created by
Tomás Cohen Arazi (tcohen)
on 2021-10-07 18:43:02 UTC
(
hide
)
Description:
Bug 29157: Date and Datetime attributes cannot be set NULL
Filename:
MIME Type:
Creator:
Tomás Cohen Arazi (tcohen)
Created:
2021-10-07 18:43:02 UTC
Size:
947 bytes
patch
obsolete
>From 01e0144d2873a53a6e6ba9919d7d6cb60235c3b9 Mon Sep 17 00:00:00 2001 >From: Tomas Cohen Arazi <tomascohen@theke.io> >Date: Thu, 7 Oct 2021 15:28:40 -0300 >Subject: [PATCH] Bug 29157: Date and Datetime attributes cannot be set NULL > >Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> >--- > Koha/Object.pm | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > >diff --git a/Koha/Object.pm b/Koha/Object.pm >index 12f138be71..d551f59748 100644 >--- a/Koha/Object.pm >+++ b/Koha/Object.pm >@@ -749,7 +749,8 @@ sub attributes_from_api { > } > elsif ( _date_or_datetime_column_type( $columns_info->{$koha_field_name}->{data_type} ) ) { > try { >- $value = dt_from_string($value, 'rfc3339'); >+ $value = dt_from_string($value, 'rfc3339') >+ if defined $value; > } > catch { > Koha::Exceptions::BadParameter->throw( parameter => $key ); >-- >2.33.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 29157
:
125644
|
125909
|
125910
|
125994
|
125995
|
126128
|
126129
|
126220
|
126221
|
126237
|
126238