View | Details | Raw Unified | Return to bug 28883
Collapse All | Expand All

(-)a/Koha/Objects.pm (-1 / +5 lines)
Lines 67-72 my $object = Koha::Objects->_new_from_dbic( $resultset ); Link Here
67
67
68
sub _new_from_dbic {
68
sub _new_from_dbic {
69
    my ( $class, $resultset ) = @_;
69
    my ( $class, $resultset ) = @_;
70
71
    if ( wantarray ) {
72
        return $class->_wrap( $resultset->all() );
73
    }
74
70
    my $self = { _resultset => $resultset };
75
    my $self = { _resultset => $resultset };
71
76
72
    bless( $self, $class );
77
    bless( $self, $class );
73
- 

Return to bug 28883