-
Notifications
You must be signed in to change notification settings - Fork 18
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
Incorrect prev
returned when querying the latest record
#96
Comments
More details... Dates of each of the entries have the following values for date published (Courtesy of zomars)- The parameter datepublish_1 would be - '2019-03-06 17:57:00' Here are the select queries for PREVIOUS and NEXT: NEXT Query: @xiaohutai - The question is should we just base it upon ID or continue using this approach? |
The referenced code from Bolt can be seen here - https://github.com/bolt/bolt/blob/c3ead6d48cc2431d72ae7f81947df7fa5fefa92b/src/Twig/Runtime/RecordRuntime.php#L314 (previous function) |
I have 4 entries with their respective ids
[1, 2, 3, 4]
. When the latest one is being requested (entries/4
), it should return id3
, but instead it returns the first one:The text was updated successfully, but these errors were encountered: