Bug 12063 - Fix QA failures
authorAlex Arnaud <alex.arnaud@biblibre.com>
Thu, 30 Mar 2017 09:53:10 +0000 (09:53 +0000)
committerKyle M Hall <kyle@bywatersolutions.com>
Tue, 9 May 2017 12:59:39 +0000 (08:59 -0400)
commit26634151dbce0bf39ff6c9eda5b58bb993996a2d
tree354a49caf4c2fd4c75949381d22a5f41b5350c8a
parent6add80083b1f8596496d13569347818ed8ce71a9
Bug 12063 - Fix QA failures

  - Remove expiration date calculation in C4::Letter since it's done
    when setting the reserve waiting,
  - remove expiration date calculation in circ/waitingreserves.pl. Use
    the one in DB,
  - add a new atomic update that calculate expiration date for
    waiting reserves,
  - add tests for days_foward function and fix the infinite loop.

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
C4/Letters.pm
C4/Reserves.pm
Koha/Calendar.pm
Koha/Hold.pm
circ/waitingreserves.pl
installer/data/mysql/atomicupdate/bug_12063-define_expirationdate_for_waitting_reserves.perl [new file with mode: 0644]
t/db_dependent/Calendar.t [new file with mode: 0644]
t/db_dependent/Holds/CancelReserves.t