Bugzilla – Attachment 62727 Details for
Bug 16826
REST API: Add API routes for getting item availability and holdability
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 16826: (follow-up, squashable) Remove warnings
Bug-16826-follow-up-squashable-Remove-warnings.patch (text/plain), 883 bytes, created by
Lari Taskula
on 2017-04-26 12:42:39 UTC
(
hide
)
Description:
Bug 16826: (follow-up, squashable) Remove warnings
Filename:
MIME Type:
Creator:
Lari Taskula
Created:
2017-04-26 12:42:39 UTC
Size:
883 bytes
patch
obsolete
>From 2b326032ae8145eb828df864b992b0e461a2054d Mon Sep 17 00:00:00 2001 >From: Lari Taskula <lari.taskula@jns.fi> >Date: Wed, 26 Apr 2017 10:48:30 +0000 >Subject: [PATCH] Bug 16826: (follow-up, squashable) Remove warnings > >Squash to Swaggerize Koha::Availability objects >--- > Koha/Availability.pm | 1 + > 1 file changed, 1 insertion(+) > >diff --git a/Koha/Availability.pm b/Koha/Availability.pm >index 89529ac..919f872 100644 >--- a/Koha/Availability.pm >+++ b/Koha/Availability.pm >@@ -226,6 +226,7 @@ sub _swaggerize_exception { > $ret->{$name} = {}; > foreach my $field ($exceptions->{$ex}->Fields) { > my $val = $exceptions->{$ex}->$field; >+ return unless $val; > if ($val =~ /^(\d{4})-(\d{2})-(\d{2})\s(\d{2}):(\d{2}):(\d{2})/) { > eval { > $val = dt_from_string($val, 'sql')->strftime('%FT%T%z'); >-- >2.7.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 16826
:
53271
|
53276
|
53371
|
53672
|
53675
|
53813
|
53826
|
53827
|
53922
|
54053
|
56128
|
56129
|
56130
|
56295
|
57271
|
57321
|
57369
|
57370
|
57371
|
57373
|
57382
|
58456
|
58457
|
58458
|
60155
|
60156
|
60157
|
60218
|
60219
|
60267
|
60268
|
60269
| 62727