Bugzilla – Attachment 105590 Details for
Bug 25638
API related tests failing on comparing floats
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 25638: Fix failure on Koha/Object.t
Bug-25638-Fix-failure-on-KohaObjectt.patch (text/plain), 1.03 KB, created by
Jonathan Druart
on 2020-06-05 14:09:59 UTC
(
hide
)
Description:
Bug 25638: Fix failure on Koha/Object.t
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2020-06-05 14:09:59 UTC
Size:
1.03 KB
patch
obsolete
>From c70aef74acd03dff2afafe75c382c3e018481e62 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Fri, 5 Jun 2020 16:09:46 +0200 >Subject: [PATCH] Bug 25638: Fix failure on Koha/Object.t > >--- > Koha/Object.pm | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > >diff --git a/Koha/Object.pm b/Koha/Object.pm >index 6a741400be..c6ae91e4ef 100644 >--- a/Koha/Object.pm >+++ b/Koha/Object.pm >@@ -127,7 +127,9 @@ sub store { > # Handle not null and default values for integers and dates > foreach my $col ( keys %{$columns_info} ) { > # Integers >- if ( _numeric_column_type( $columns_info->{$col}->{data_type} ) ) { >+ if ( _numeric_column_type( $columns_info->{$col}->{data_type} ) >+ or _decimal_column_type( $columns_info->{$col}->{data_type} ) >+ ) { > # Has been passed but not a number, usually an empty string > my $value = $self->_result()->get_column($col); > if ( defined $value and not looks_like_number( $value ) ) { >-- >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 25638
:
105484
|
105485
|
105582
|
105583
|
105590
|
105595
|
105596
|
105597
|
105598
|
105599
|
105665