]> git.koha-community.org Git - koha.git/commit
Bug 10796: Add Koha::Patron::Category->effective_change_password method
authorTomas Cohen Arazi <tomascohen@theke.io>
Wed, 20 Feb 2019 16:26:18 +0000 (13:26 -0300)
committerNick Clemens <nick@bywatersolutions.com>
Fri, 12 Apr 2019 02:32:06 +0000 (02:32 +0000)
commita6466f1f3b02915f0c4e578ce13455ad3aacf46c
tree4673d0413b605b05092a7d4547b8575240542902
parent13f953317a64f66303db46424baacf15d962c0bd
Bug 10796: Add Koha::Patron::Category->effective_change_password method

This method checks whether the local $self->change_password is set to
override the OpacPasswordChange syspref (i.e. if it is set to a
bool) or undef, in which case it 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