Skip to content

Commit

Permalink
Fixes #26453 - Table output allows to hide fields with no error
Browse files Browse the repository at this point in the history
  • Loading branch information
orrabin authored and ofedoren committed Mar 26, 2019
1 parent c0c23e2 commit 162d13b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/hammer_cli/output/adapter/table.rb
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ def print_collection(all_fields, collection)
# and there is no --no-headers option
output_stream.puts line unless formatted_collection.empty? || @context[:no_headers]

if @context[:verbosity] >= collection.meta.pagination_verbosity &&
collection.respond_to?(:meta) && collection.meta.pagination_set? &&
if collection.respond_to?(:meta) && collection.meta.pagination_set? &&
@context[:verbosity] >= collection.meta.pagination_verbosity &&
collection.count < collection.meta.subtotal
pages = (collection.meta.subtotal.to_f / collection.meta.per_page).ceil
puts _("Page %{page} of %{total} (use --page and --per-page for navigation).") % {:page => collection.meta.page, :total => pages}
Expand Down

0 comments on commit 162d13b

Please sign in to comment.