X-Git-Url: http://koha-dev.rot13.org:8081/gitweb/?a=blobdiff_plain;f=C4%2FCreators%2FLib.pm;h=c16a2c81a6f25ca83f966a5d171835bcb16a3572;hb=85da34c94a5a92df78e03a505054a241dc797877;hp=68e6aa593072cd8d20f2055b8e38ca1d204e73e1;hpb=461e7375cd9841f6d43e11c273998c3006f04abf;p=srvgit diff --git a/C4/Creators/Lib.pm b/C4/Creators/Lib.pm index 68e6aa5930..c16a2c81a6 100644 --- a/C4/Creators/Lib.pm +++ b/C4/Creators/Lib.pm @@ -295,7 +295,7 @@ sub get_batch_summary { my @batches = (); $params->{fields} = ['batch_id', 'description', 'count(batch_id) as _item_count']; my ( $query, @where_args ) = _build_query( $params, 'creator_batches' ); - $query .= " GROUP BY batch_id"; + $query .= " GROUP BY batch_id, description"; my $sth = C4::Context->dbh->prepare($query); $sth->execute( @where_args ); if ($sth->err) {