]> git.koha-community.org Git - koha.git/commit
Bug 21890: Add Koha::Patron::Category->effective_reset_password method
authorTomas Cohen Arazi <tomascohen@theke.io>
Tue, 5 Feb 2019 19:44:14 +0000 (16:44 -0300)
committerNick Clemens <nick@bywatersolutions.com>
Fri, 12 Apr 2019 02:32:02 +0000 (02:32 +0000)
commitdea4f3caaadabc8977453615eb162d8403fa5b5d
tree23fda9e1d13fb3e728b017317c2b51f7016c0df5
parente8fc66f0f612ce6516089894b28899522d13021e
Bug 21890: Add Koha::Patron::Category->effective_reset_password method

This method checks wether the local $self->reset_password is set to
override the OpacResetPassword syspref (i.e. if it is set to a bool) or
undef, in which case if falls back to the value of the syspref.

To test:
- Apply this patches
- Make sure the DB is updated:
  $ updatedatabase
- Update the schema files:
  $ dbic
- Run:
  $ kshell
 k$ prove t/db_dependent/Koha/Patron/Category.t
=> SUCCESS: Tests pass!
- Sign off :-D

Signed-off-by: Liz Rea <wizzyrea@gmail.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Koha/Patron/Category.pm
t/db_dependent/Koha/Patron/Category.t [new file with mode: 0644]