Needs review
Project:
Previous/Next API
Version:
8.x-2.x-dev
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
9 Nov 2016 at 17:25 UTC
Updated:
16 Jan 2023 at 22:37 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
josephleon commentedTaking a dive into this.
Comment #3
josephleon commentedCould you please include steps to reproduce the exact error you are getting with as much detail as possible?
Comment #4
gaëlgI have two node types: pages and definitions. I want prev/next links on definitions, but not on pages. In admin/config/system/prev-next, I check "Include" for definitions, and not for pages. I add a prev/next block to the content region. I create pages. I get prev/next links on it, which is wrong.
(Actually I use a patched version of the module, from #2822938: Only nodes in the same term, but I'm pretty sure the bug exists in the unpatched version because there is no call to $bundle->get('include'), so the code never checks if the checkbox is checked or not)
Comment #5
shuiiz commentedI have made a simple patch to check if "include" is checked before indexing the item.
Comment #6
jcnventuraComment #7
nicxvan commentedI actually addressed this in my drush merge request since I needed that there as well.
https://www.drupal.org/project/prev_next/issues/3333959