Closed (fixed)
Project:
Drupal core
Version:
6.x-dev
Component:
book.module
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
8 May 2007 at 04:22 UTC
Updated:
17 Jul 2007 at 19:57 UTC
Jump to comment: Most recent file
Comments
Comment #1
webchickSame error applies to orphan pages, as well. To reproduce, create a book page under a parent book page and delete the parent book page.
Comment #2
xqus commentedThis happens when the l function is called with NULL as options paramater.
Comment #3
xqus commentedDon't mind the filename of the patch. The patch is for the book.module file.
Comment #4
robeano commentedI tested the patch on 6.x. checked both clicking the outline link and viewing orphan pages. Works great!
Robin
Comment #5
webchickYep, works for me! Thanks, xqus!
This is just a re-roll from the root. Please do not give me credit in the commit message. :)
Comment #6
webchickComment #7
chx commentedNot having errors does not mean this is a correct patch. The signature of l is
function l($text, $path, $options = array())and you are trying to pass in four arguments. You want to move the fourth argument to thequerykey of the options array which is hardcoded to be empty ATM.Comment #8
xqus commentedAh, I missed that one.
Should be fixed now. Works fine here, and you are returned to the page you came from after deleting.
Comment #9
webchickYep, this works! (apart from deleting is broken, but that's not because of this patch. :))
Comment #10
killes@www.drop.org commentedStill applies (use -p0) and works as advertized. SImple bugfix.
Comment #11
dries commentedCommitted. Thanks! :)
Comment #12
(not verified) commented