Bug 24360

Summary: issues.renewal limits to 127
Product: Koha Reporter: Jonathan Druart <jonathan.druart>
Component: CirculationAssignee: Bugs List <koha-bugs>
Status: NEW --- QA Contact: Testopia <testopia>
Severity: minor    
Priority: P5 - low CC: gmcharlt, kyle.m.hall
Version: unspecified   
Hardware: All   
OS: All   
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:

Description Jonathan Druart 2020-01-07 11:20:37 UTC
Certainly not a big deal but reporting it here anyway.

From a test in t/db_dependent/Circulation/issue.t:

koha_1       | DBD::mysql::st execute failed: Out of range value for column 'renewals' at row 1 [for Statement "UPDATE issues SET date_due = ?, renewals = ?, lastreneweddate = ?
koha_1       |                                 WHERE borrowernumber=?
koha_1       |                                 AND itemnumber=?" with ParamValues: 0='2019-12-24 00:00', 1=128, 2='2019-12-24', 3='494', 4='1266'] at /kohadevbox/koha/C4/Circulation.pm line 2936.

The values for issue has been generated from TestBuilder, which set issues.renewal to 127. However the test calls AddRenewal which increments this value, and we reach the limit.