[Koha-bugs] [Bug 17579] Add the Koha::Patron->is_expired method

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Nov 15 10:57:35 CET 2016


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17579

--- Comment #9 from Josef Moravec <josef.moravec at gmail.com> ---
Created attachment 57476
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=57476&action=edit
[SIGNED-OFF] Bug 17579: Make sure we are testing the real life

Without this patch, the tests are not testing the same things as what
happens on the interface.
We need to refresh the object to make sure the date set into dateexpiry
is the one in DB.
Without this patch, ->is_expired test a datetime object, with this patch
it compares with a date oject

Without the changes made in Koha::Patron->is_expired, a patron which has
a dateexpiry set to today was marked as expired on the interface. This
is a change in the behavior, what this refactoring does not want to do.

Signed-off-by: Josef Moravec <josef.moravec at gmail.com>

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list