diff --git a/C4/Reports/Guided.pm b/C4/Reports/Guided.pm index f5f65d9639..cdda357bd9 100644 --- a/C4/Reports/Guided.pm +++ b/C4/Reports/Guided.pm @@ -219,11 +219,13 @@ sub _get_columns { return [ map { my $column_name = $_->{Field}; - { - name => sprintf( "%s.%s", $table_name, $column_name ), - description => $all_columns->{$table_name}->{$column_name}, - }; - + my $forbidden = Koha::Report->new->check_columns( undef, [$column_name] ); + $forbidden ? () : ( + { + name => sprintf( "%s.%s", $table_name, $column_name ), + description => $all_columns->{$table_name}->{$column_name}, + } + ); } @$columns ]; } diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/dictionary.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/reports/dictionary.tt index d30ade2126..7cdfaf7e66 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/dictionary.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/reports/dictionary.tt @@ -150,6 +150,16 @@