[Koha-bugs] [Bug 21890] Patron password reset by category
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Mon Apr 1 19:27:24 CEST 2019
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=21890
--- Comment #40 from Martin Renvoize <martin.renvoize at ptfs-europe.com> ---
Comment on attachment 86869
--> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=86869
Bug 21890: Add can_any_reset_password() to the Categories TT plugin
Review of attachment 86869:
--> (https://bugs.koha-community.org/bugzilla3/page.cgi?id=splinter.html&bug=21890&attachment=86869)
-----------------------------------------------------------------
::: Koha/Template/Plugin/Categories.pm
@@ +33,5 @@
> return Koha::Patron::Categories->find( $categorycode )->description;
> }
>
> +sub can_any_reset_password {
> + return ( grep { $_->effective_reset_password } @{ Koha::Patron::Categories->search->as_list } )
I'd prefer a List::Util::any call here: https://metacpan.org/pod/List::Util#any
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list