to reproduce
1) add a date time to content type
2) create content with some different, some same of that date
3) configure flippy to sort by that date
4) click previous and next
results: in one direction, all nodes displayed, in the opposite only one for each time slot is displayed
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | 2180955-flippy-nid-1.patch | 499 bytes | hefox |
Comments
Comment #1
hefox commentedsorting by nid in same direction as sort seems to fix it
Comment #2
rliHi hefox,
Not sure if you are using the current dev branch but it seems so.
I followed your steps, but could not reproduce the error. This issue had been here for flippy for quite a while, we had to convert it back to SelectQuery to overcome this issue. By default, if you have the same field value for the two nodes, flippy will use nid as the sorting criteria. So in your case, if the date are the same, flippy will sort the nodes by nid.
I achieved this function by following code example in line 419:
I created 3 nodes, 2 of them are using the same date, the other one is using different date, flippy is able to go through all the nodes in either direction.
Feel free to post your idea here.
Comment #3
hefox commentedI was using a custom date field with year/month/day granulairity. Not looking at the code atm, but guessing the issue is just for fields and not core node date timestamps.
Comment #4
marameodesignI am having the same issue, with custom field "year", and skips nodes with the same value.
I'm hoping to switch to sorting by weight - that would solve the issue.
https://drupal.org/comment/8432885#comment-8432885
Comment #5
rliFinally was able to reproduce the error. The patch in #1 adds secondary orderBy to the query that can fix the bug.
Will apply and commit.
Thanks.
Comment #6
rlicommitted to dev. Thanks.