]> git.koha-community.org Git - koha.git/commit
Bug 23207: Automatic checkin items should never be overdue
authorTomas Cohen Arazi <tomascohen@theke.io>
Thu, 22 Apr 2021 12:03:01 +0000 (09:03 -0300)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Thu, 22 Apr 2021 12:37:14 +0000 (14:37 +0200)
commit137b845f23043c0f1f64d956b28c5cd4d8124e23
tree6e9137aca7570d6e8a6fd1a66eefffc923d53ab8
parent78f6bb6fa150eb2773fecbbbe5d7d07acb4ea742
Bug 23207: Automatic checkin items should never be overdue

This patch makes Koha::Checkouts->automatic_checkin pass the date_due as
return date to AddReturn.

To test:
1. Apply the regression tests
2. Run:
   $ kshell
  k$ prove t/db_dependent/Koha/Checkouts.t
=> FAIL: The feature is not working properly
3. Apply this patch
4. Repeat 2
=> SUCCESS: Tests pass!
5. Sign off :-D

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Koha/Checkouts.pm