[Koha-bugs] [Bug 24815] Koha::Cash::Register relations should return sets not undef
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Thu Mar 5 19:53:46 CET 2020
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24815
Tomás Cohen Arazi <tomascohen at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |tomascohen at gmail.com
--- Comment #3 from Tomás Cohen Arazi <tomascohen at gmail.com> ---
(In reply to Jonathan Druart from comment #2)
> I will double check tomorrow but I think the following one is not correct:
>
> @@ -86,7 +84,6 @@ sub last_cashup {
> { order_by => { '-desc' => [ 'timestamp', 'id' ] }, rows => 1 }
> )->single;
>
> - return unless $rs;
> return Koha::Cash::Register::Action->_new_from_dbic($rs);
> }
You are right. We return undef on the singular case
--
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.
More information about the Koha-bugs
mailing list