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

(-)a/Koha/Objects.pm (-1 / +11 lines)
Lines 130-135 sub search { Link Here
130
    }
130
    }
131
}
131
}
132
132
133
sub search_all_unblessed {
134
    my ( $self, $params, $attributes ) = @_;
135
136
    my $newattr = $attributes? { (%$attributes) }: {};
137
    $attributes->{result_class} = 'DBIx::Class::ResultClass::HashRefInflator';
138
    my @results = $self->_resultset()->search($params, $attributes);
139
    @results == 1 && !($results[0]) && return;
140
141
    \@results;
142
}
143
133
=head3 Koha::Objects->count();
144
=head3 Koha::Objects->count();
134
145
135
my @objects = Koha::Objects->count($params);
146
my @objects = Koha::Objects->count($params);
136
- 

Return to bug 16076