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
_______________________________________________ Koha-devel mailing list Koha-devel@lists.koha-community.org https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel website : https://www.koha-community.org/ git : https://git.koha-community.org/ bugs : https://bugs.koha-community.org/