Bug 12812: Longoverdue.pl --mark-returned doesn't return items
authorKyle M Hall <kyle@bywatetsolutions.com>
Thu, 8 Feb 2018 11:39:39 +0000 (06:39 -0500)
committerFridolin Somers <fridolin.somers@biblibre.com>
Tue, 10 Apr 2018 07:31:26 +0000 (09:31 +0200)
commit54a294571ffc2c9fc0edccba448cf67133205658
treec7876d2840bfc9168d74985083fd9fa5022e2fab
parent2253956f6915dbe4d4164a094a437ad9fd89f204
Bug 12812: Longoverdue.pl --mark-returned doesn't return items

The longoverdue.pl option --mark-returned doesn't work unless the
--charge option is used as well.

Test Plan:
1) Run long overdue with --mark-returned and not --charge,
   note your items are marked lost but not returned
2) Apply this patch
3) Repeat step 1, the items should now get returned!

Tested with (for example):
misc/cronjobs/longoverdue.pl --lost 10=1 --mark-returned --verbose
--confirm

Signed-off-by: Josef Moravec <josef.moravec@gmail.com>
Signed-off-by: Julian Maurice <julian.maurice@biblibre.com>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
(cherry picked from commit 93c5c8e4c85ed3330184de2c6ea06ab73803656b)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
misc/cronjobs/longoverdue.pl