[Koha-bugs] [Bug 28883] Koha::Objects->_new_from_dbic doesn't work correctly in list context

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Sep 24 08:35:45 CEST 2021


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

--- Comment #37 from Marcel de Rooy <m.de.rooy at rijksmuseum.nl> ---
Curious code segment Koha/Patron:

sub get_club_enrollments {
    my ( $self, $return_scalar ) = @_;
    my $e = Koha::Club::Enrollments->search( { borrowernumber =>
$self->borrowernumber(), date_canceled => undef } );
    return $e if $return_scalar;
    return wantarray ? $e->as_list : $e;
}

$return_scalar ?

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list