diff --git a/rattail/pyramid/views/batches/rows.py b/rattail/pyramid/views/batches/rows.py index ba6fb42c..9c389767 100644 --- a/rattail/pyramid/views/batches/rows.py +++ b/rattail/pyramid/views/batches/rows.py @@ -132,6 +132,7 @@ def batch_rows_delete(request): rows = grid.make_query() count = rows.count() rows.delete(synchronize_session=False) + grid.batch.rowcount -= count request.session.flash("Deleted %d rows from batch." % count) return HTTPFound(location=request.route_url('batch.rows', uuid=grid.batch.uuid))