Bugzilla – Attachment 122381 Details for
Bug 28585
Cannot search on date fields
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 28585: Fix search on date field
Bug-28585-Fix-search-on-date-field.patch (text/plain), 928 bytes, created by
Jonathan Druart
on 2021-06-24 10:47:34 UTC
(
hide
)
Description:
Bug 28585: Fix search on date field
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2021-06-24 10:47:34 UTC
Size:
928 bytes
patch
obsolete
>From 15de19e5f72b953a83a2289b3aa9e2c3d9ee8922 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Thu, 24 Jun 2021 12:46:43 +0200 >Subject: [PATCH] Bug 28585: Fix search on date field > >We should not rfc3339 format the date if it's not a datetime >--- > Koha/Object.pm | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/Koha/Object.pm b/Koha/Object.pm >index 5e31cd9bf3d..a1891397fc2 100644 >--- a/Koha/Object.pm >+++ b/Koha/Object.pm >@@ -706,7 +706,7 @@ sub attributes_from_api { > # Handle booleans gracefully > $value = ( $value ) ? 1 : 0; > } >- elsif ( _date_or_datetime_column_type( $columns_info->{$koha_field_name}->{data_type} ) ) { >+ elsif ( _datetime_column_type( $columns_info->{$koha_field_name}->{data_type} ) ) { > try { > $value = dt_from_string($value, 'rfc3339'); > } >-- >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 28585
:
122381
|
122444
|
122445
|
122446
|
122457
|
122458
|
122459
|
123115
|
123116
|
123117
|
126668
|
126669
|
126670
|
126671
|
126679