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

--- Comment #40 from Martin Renvoize <[email protected]> ---
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.
_______________________________________________
Koha-bugs mailing list
[email protected]
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to