Lines 295-301
sub get_batch_summary {
Link Here
|
295 |
my @batches = (); |
295 |
my @batches = (); |
296 |
$params->{fields} = ['batch_id', 'description', 'count(batch_id) as _item_count']; |
296 |
$params->{fields} = ['batch_id', 'description', 'count(batch_id) as _item_count']; |
297 |
my ( $query, @where_args ) = _build_query( $params, 'creator_batches' ); |
297 |
my ( $query, @where_args ) = _build_query( $params, 'creator_batches' ); |
298 |
$query .= " GROUP BY batch_id"; |
298 |
$query .= " GROUP BY batch_id, description"; |
299 |
my $sth = C4::Context->dbh->prepare($query); |
299 |
my $sth = C4::Context->dbh->prepare($query); |
300 |
$sth->execute( @where_args ); |
300 |
$sth->execute( @where_args ); |
301 |
if ($sth->err) { |
301 |
if ($sth->err) { |
302 |
- |
|
|