Bugzilla – Attachment 69851 Details for
Bug 18330
REST API: Date-time handling
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 18330: Do not return undef explicitely
Bug-18330-Do-not-return-undef-explicitely.patch (text/plain), 1.00 KB, created by
Jonathan Druart
on 2017-12-18 15:13:48 UTC
(
hide
)
Description:
Bug 18330: Do not return undef explicitely
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2017-12-18 15:13:48 UTC
Size:
1.00 KB
patch
obsolete
>From b587b5862467157762a2f013e8f04f067b6f14a5 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Mon, 18 Dec 2017 12:12:09 -0300 >Subject: [PATCH] Bug 18330: Do not return undef explicitely > >This patch fixes a perl critic issue, hopefully it will not break >something else. > >Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >--- > Koha/Object.pm | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/Koha/Object.pm b/Koha/Object.pm >index fc30adc2b3..0956cca836 100644 >--- a/Koha/Object.pm >+++ b/Koha/Object.pm >@@ -224,7 +224,7 @@ sub TO_JSON { > } > elsif ( _datetime_column_type( $columns_info->{$col}->{data_type} ) ) { > eval { >- return undef unless $unblessed->{$col}; >+ return unless $unblessed->{$col}; > $unblessed->{$col} = output_pref({ > dateformat => 'rfc3339', > dt => dt_from_string($unblessed->{$col}, 'sql'), >-- >2.11.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 18330
:
63603
|
63604
|
63605
|
69726
|
69727
|
69749
|
69750
|
69751
| 69851