[Koha-devel] New class: Koha::Result::Boolean

Tomas Cohen Arazi tomascohen at gmail.com
Thu Jan 6 16:19:45 CET 2022


Hi all, happy 2022 :-D

I wanted to mention that a bug that introduces Koha::Result::Boolean has
been pushed [1]. This class provides a way to return an object, that
evaluates to  a boolean in (Perl's) bool context but also carries reasons
for the result.

It has been used in a couple places, like bug 29765 [2] and bug 29788 [3]
(which still needs the QA step).

[1] https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=29746
[2] https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=29765
[3] https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=29788

-- 
Tomás Cohen Arazi
Theke Solutions (http://theke.io)
✆ +54 9351 3513384
GPG: B2F3C15F
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.koha-community.org/pipermail/koha-devel/attachments/20220106/6e69ad0a/attachment.htm>


More information about the Koha-devel mailing list