diff --git a/CHANGELOG.md b/CHANGELOG.md index 30b43cc1..426b6957 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -27,6 +27,11 @@ Versioning](https://semver.org/spec/v2.0.0.html). ## [Unreleased] +## [v3.0.3](https://github.com/CDRH/orchid/compare/v3.0.2...v3.0.3) - pagination bugfix + +### Fixed +- bug with search pagination + ## [v3.0.2](https://github.com/CDRH/orchid/compare/v3.0.1...v3.0.2) - html_classes for styling and minor fixes ### Added diff --git a/app/views/items/_paginator.html.erb b/app/views/items/_paginator.html.erb index a7119bf9..f0df6462 100644 --- a/app/views/items/_paginator.html.erb +++ b/app/views/items/_paginator.html.erb @@ -31,7 +31,7 @@ rel: "nofollow", "aria-label": "First Page" %> <%# don't display dots between 1 and 2 %> - <% if pages_prior.min > 2 %> + <% if pages_prior.present? && pages_prior.min > 2 %>
  • <% end %> <% end %> diff --git a/lib/orchid/version.rb b/lib/orchid/version.rb index 62d12bd3..57c14afe 100644 --- a/lib/orchid/version.rb +++ b/lib/orchid/version.rb @@ -1,3 +1,3 @@ module Orchid - VERSION = '3.0.2' + VERSION = '3.0.3' end