I have a node that is assigned to a book hierarchy, but is unpublished.
If I navigate to the book node which is immediately after the unpublished node in the book hierarchy, a link to the unpublished node is displayed in the book navigation below the content.
For an example, go to http://nlca.com/recordings/general/treeofglory. There is an unpublished node following this node in the book hierarchy. If you click on the "Next - Heritage Series" link in the book navigation below the content, you'll see that a link to the unpublished node "Holy: A Hymn Festival" is now displayed with the "previous" link.
Comment | File | Size | Author |
---|---|---|---|
#4 | book.module.diff | 1.12 KB | drumm |
Comments
Comment #1
bjornarneson CreditAttribution: bjornarneson commentedI have more information about the book hierarchy which may help get to the bottom of this.
In the book structure above, the "Previous" link in book navigation shows "Holy: A Hymn Festival" when on the "Heritage Series" page.
In the example above, the book navigation DOES respect the unpublished status of the "Staff" node.
As far as I can tell, the bug exists when the unpublished node is the last node in its level of the hierarchy and the user is viewing the next node in the book sequence, one level up.
Comment #2
bjornarneson CreditAttribution: bjornarneson commentedThis is still a problem with Drupal 4.6.2. I've been able to reproduce this bug on two different installations. Does anyone else have problems with Drupal exposing unpublishing nodes through book.module?
Comment #3
drummI'll take a look.
Comment #4
drummHere is a patch. It probably applies to the 4.6.x branch too.
Comment #5
Dries CreditAttribution: Dries commentedCommitted to DRUPAL-4-6 and HEAD.
Comment #6
(not verified) CreditAttribution: commentedComment #7
drumm