Bugzilla – Attachment 71412 Details for
Bug 20144
Test suite is failing with new default SQL modes
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 20144: [sql_modes] Fix default value for statistics.amount
Bug-20144-sqlmodes-Fix-default-value-for-statistic.patch (text/plain), 1.43 KB, created by
Julian Maurice
on 2018-02-12 09:30:22 UTC
(
hide
)
Description:
Bug 20144: [sql_modes] Fix default value for statistics.amount
Filename:
MIME Type:
Creator:
Julian Maurice
Created:
2018-02-12 09:30:22 UTC
Size:
1.43 KB
patch
obsolete
>From b7502517d6131b8cb403a6f295e8ded0d14eb6e6 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Mon, 5 Feb 2018 14:41:48 -0300 >Subject: [PATCH] Bug 20144: [sql_modes] Fix default value for > statistics.amount > >Must be an integer, not empty string >Fix for: >Data truncated for column 'value' > >Found with >t/db_dependent/Holds/DisallowHoldIfItemsAvailable.t > >Signed-off-by: Josef Moravec <josef.moravec@gmail.com> >Signed-off-by: Julian Maurice <julian.maurice@biblibre.com> >--- > C4/Stats.pm | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/C4/Stats.pm b/C4/Stats.pm >index 2ad685cbe6..86096bffdd 100644 >--- a/C4/Stats.pm >+++ b/C4/Stats.pm >@@ -120,7 +120,7 @@ sub UpdateStats { > my $type = $params->{type}; > my $borrowernumber = exists $params->{borrowernumber} ? $params->{borrowernumber} : ''; > my $itemnumber = exists $params->{itemnumber} ? $params->{itemnumber} : ''; >- my $amount = exists $params->{amount} ? $params->{amount} : ''; >+ my $amount = exists $params->{amount} ? $params->{amount} : 0; > my $other = exists $params->{other} ? $params->{other} : ''; > my $itemtype = exists $params->{itemtype} ? $params->{itemtype} : ''; > my $location = exists $params->{location} ? $params->{location} : undef; >-- >2.14.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 20144
:
71410
|
71411
| 71412 |
71413
|
71414
|
71415
|
71416
|
71417
|
71418
|
71419
|
71420
|
71421
|
71422
|
71423
|
71424
|
71425
|
71427
|
71428
|
71429
|
71430
|
71431
|
71432
|
71434
|
71435
|
71436
|
71437
|
71438
|
71440
|
71441
|
71442
|
71443
|
71444
|
71445
|
71446
|
71447
|
71448
|
71449
|
71450
|
71451
|
71452
|
71453
|
71454
|
71455
|
71456
|
71457
|
71458
|
71459
|
71460
|
71461
|
71462
|
71463
|
71467
|
71564