@@ -, +, @@ module --> without this patch the deleted options returns not deleted items and --> with this patch you should be able to filter the results to deleted, not deleted and all items and everyone of this filter should work --- koha-tmpl/intranet-tmpl/prog/en/modules/reports/catalogue_stats.tt | 6 +++++- reports/catalogue_stats.pl | 4 ++-- 2 files changed, 7 insertions(+), 3 deletions(-) --- a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/catalogue_stats.tt +++ a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/catalogue_stats.tt @@ -245,7 +245,7 @@ Cell value
  1. - +
  2. @@ -256,6 +256,10 @@
  3. +
  4. + + +
--- a/reports/catalogue_stats.pl +++ a/reports/catalogue_stats.pl @@ -46,7 +46,7 @@ my $fullreportname = "reports/catalogue_stats.tt"; my $do_it = $input->param('do_it'); my $line = $input->param("Line"); my $column = $input->param("Column"); -my $cellvalue = $input->param("Cellvalue"); # one of 'items', 'biblios' +my $cellvalue = $input->param("Cellvalue"); # one of 'items', 'biblios', 'deleteditems', 'allitems' my @filters = $input->multi_param("Filter"); my $cotedigits = $input->param("cotedigits"); my $output = $input->param("output"); @@ -175,7 +175,7 @@ sub calculate { my $itemstable = 'items'; my $deleted_where = "items.deleted_on IS NULL"; $deleted_where = "1" if $cellvalue eq 'allitems'; - $deleted_where = "items.deleted_on IS NOT NULL" if $cellvalue eq 'items'; + $deleted_where = "items.deleted_on IS NOT NULL" if $cellvalue eq 'deleteditems'; my $dbh = C4::Context->dbh; --