]> git.koha-community.org Git - koha.git/commit
Bug 8251 - Patrons get incorrectly debarred
authorTomas Cohen Arazi <tomascohen@gmail.com>
Fri, 15 Jun 2012 17:51:42 +0000 (14:51 -0300)
committerPaul Poulain <paul.poulain@biblibre.com>
Wed, 20 Jun 2012 21:24:24 +0000 (23:24 +0200)
commitc6f1f64cb71e9d8ec560a201a4a0bc16c1510f3f
tree629d408bad65ffa1b612ecc1d6d5de18006326c3
parent3069f1e6d9075cab6484ee95f09f7c653d901184
Bug 8251 - Patrons get incorrectly debarred

Patrons get incorrectly debarred because of the use of Datetime->delta_days
wich happens to always return a positive number.

Also changed the use of Datetime->truncate function so it follows the docs,
using 'day' instead of 'days' (which is used in DateTime::Duration).

This patch has been tested against master.

Signed-off-by: Julian Maurice <julian.maurice@biblibre.com>
Signed-off-by: Paul Poulain <paul.poulain@biblibre.com>
Koha/Calendar.pm