Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Small bug with post.previous and post.next methods #464

Open
sintro opened this issue Jul 25, 2016 · 0 comments
Open

Small bug with post.previous and post.next methods #464

sintro opened this issue Jul 25, 2016 · 0 comments

Comments

@sintro
Copy link
Contributor

sintro commented Jul 25, 2016

If some posts were published at the same minute, the methods
https://github.com/refinery/refinerycms-blog/blob/master/app/models/refinery/blog/post.rb#L114
https://github.com/refinery/refinerycms-blog/blob/master/app/models/refinery/blog/post.rb#L123
will not return any records, so rendering the <%= render 'nav' if next_or_previous?(@post) %> will be broken (some records will be invisible to this template)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant