Bug 7326

Summary: longoverdue.pl was hardcoded to 1 year, is now a parameter
Product: Koha Reporter: Ian Walls <koha.sekjal>
Component: Command-line UtilitiesAssignee: Ian Walls <koha.sekjal>
Status: CLOSED FIXED QA Contact: Ian Walls <koha.sekjal>
Severity: enhancement    
Priority: PATCH-Sent (DO NOT USE) CC: chris, katrin.fischer, paul.poulain
Version: 3.6   
Hardware: All   
OS: All   
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Attachments: Bug 7326: longoverdue.pl hardcoded to 366 days maximum
Bug 7326: longoverdue.pl hardcoded to 366 days maximum

Description Ian Walls 2011-12-07 00:05:45 UTC
The longoverdue.pl will not handle items overdue by more than 366 days.  This is hardcoded with a FIXME after it; no reason not to add an additional commandline flag to let the user specify a greater (or lesser) number.
Comment 1 Ian Walls 2011-12-07 00:15:35 UTC Comment hidden (obsolete)
Comment 2 Chris Cormack 2011-12-13 08:36:21 UTC
Created attachment 6739 [details] [review]
Bug 7326: longoverdue.pl hardcoded to 366 days maximum

Adds --maxdays command line flag to longoverdue.pl to allow the user to specify
their own $endrange value.  Because sometimes 366 isn't enough!

Also adds help documentation for both --quiet and --maxdays params

Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>

Simple change, works well
Comment 3 Paul Poulain 2011-12-15 16:15:00 UTC
QA comment: small patch, new feature documented, default behaviour unchanged (++ for existing setups)

patch pushed, please test