Bugzilla – Attachment 105317 Details for
Bug 25513
Integer casting in Koha::Object->TO_JSON causes random test failures
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 25513: Fix random failure from acquisitions_orders.t
Bug-25513-Fix-random-failure-from-acquisitionsorde.patch (text/plain), 1.21 KB, created by
Victor Grousset/tuxayo
on 2020-05-24 18:50:02 UTC
(
hide
)
Description:
Bug 25513: Fix random failure from acquisitions_orders.t
Filename:
MIME Type:
Creator:
Victor Grousset/tuxayo
Created:
2020-05-24 18:50:02 UTC
Size:
1.21 KB
patch
obsolete
>From f5de1634e92a8e1a42c84bb74f3acb61570abb54 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Fri, 22 May 2020 14:29:20 +0200 >Subject: [PATCH] Bug 25513: Fix random failure from acquisitions_orders.t > >No idea if this is correct, but the tests pass without that condition > >See bug 17932 > >Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net> >--- > Koha/Object.pm | 9 --------- > 1 file changed, 9 deletions(-) > >diff --git a/Koha/Object.pm b/Koha/Object.pm >index ed7cc4bdc9..44214f85c5 100644 >--- a/Koha/Object.pm >+++ b/Koha/Object.pm >@@ -353,15 +353,6 @@ sub TO_JSON { > ? Mojo::JSON->true > : Mojo::JSON->false; > } >- elsif ( _numeric_column_type( $columns_info->{$col}->{data_type} ) >- and looks_like_number( $unblessed->{$col} ) >- ) { >- >- # TODO: Remove once the solution for >- # https://rt.cpan.org/Ticket/Display.html?id=119904 >- # is ported to whatever distro we support by that time >- $unblessed->{$col} += 0; >- } > elsif ( _datetime_column_type( $columns_info->{$col}->{data_type} ) ) { > eval { > return unless $unblessed->{$col}; >-- >2.26.2
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 25513
:
105170
|
105175
|
105177
|
105265
|
105317
|
105393
|
105394
|
105395