Bugzilla – Attachment 80899 Details for
Bug 21600
t/db_dependent/api/v1/patrons.t is failing with new SQL modes
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 21600: Use str param instead of dt for output_pref
Bug-21600-Use-str-param-instead-of-dt-for-outputpr.patch (text/plain), 1.24 KB, created by
Marcel de Rooy
on 2018-10-19 07:44:06 UTC
(
hide
)
Description:
Bug 21600: Use str param instead of dt for output_pref
Filename:
MIME Type:
Creator:
Marcel de Rooy
Created:
2018-10-19 07:44:06 UTC
Size:
1.24 KB
patch
obsolete
>From 8b216cb559d5d5660a40bed711de7a47145e678e Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Thu, 18 Oct 2018 16:36:45 -0300 >Subject: [PATCH] Bug 21600: Use str param instead of dt for output_pref >Content-Type: text/plain; charset=utf-8 > >Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> > >Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >--- > Koha/REST/V1/Patrons.pm | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > >diff --git a/Koha/REST/V1/Patrons.pm b/Koha/REST/V1/Patrons.pm >index 8d298a0..5e8e398 100644 >--- a/Koha/REST/V1/Patrons.pm >+++ b/Koha/REST/V1/Patrons.pm >@@ -367,11 +367,11 @@ sub _to_model { > } > > if ( exists $patron->{lastseen} ) { >- $patron->{lastseen} = output_pref({ dt => dt_from_string( $patron->{lastseen} ), dateformat => 'sql' }); >+ $patron->{lastseen} = output_pref({ str => $patron->{lastseen}, dateformat => 'sql' }); > } > > if ( exists $patron->{updated_on} ) { >- $patron->{updated_on} = output_pref({ dt => dt_from_string( $patron->{updated_on} ), dateformat => 'sql' }); >+ $patron->{updated_on} = output_pref({ str => $patron->{updated_on}, dateformat => 'sql' }); > } > > return $patron; >-- >2.1.4
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 21600
:
80875
|
80876
|
80877
|
80898
| 80899