Closed (fixed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
book.module
Priority:
Major
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
3 Mar 2014 at 00:11 UTC
Updated:
29 Jul 2014 at 23:25 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
pwolanin commentedNot really a patch, just starting to hack.
Comment #2
dawehnercontinuing the work, still not really a patch.
Comment #3
dawehnerLet's see.
Comment #5
dawehnerFixes.
Comment #6
pwolanin commentedthe comment change in menu.inc is wrong
Comment #7
dawehnerRight.
Comment #8
dawehnerCreated a change notice: https://drupal.org/node/2216631
Comment #9
jibranDo we really need this?
Comment #10
dawehnerNot at all.
Comment #11
tim.plunkettOut of scope, but it'd be nice to fix this someday
Yay!
Comment #14
catchThat's potentially solved by #1805054: Cache localized, access filtered, URL resolved, and rendered menu trees.
Why the nested if and not &&?
This isn't in the new change notice, does the previous one need updating for removal?
No need for isset() check if there's also a check for $tree_cid_cache, ->data is always set. I realise this logic is in the old code too.
I know this comes from the menu system, but $translate setting access always felt like an accident to me and it's being enforced here. What's the use case for not setting $translate? Is that ever used?
Does this need array type hint?
Comment #15
dawehnerNo idea, just extended https://drupal.org/node/2216631
Yeah let's fix it now.
If you are in an API only change without any output involved you just want to load the book entry and not care about the additional information.
One place we use it at the moment is hook_node_load:
Fixed the other one as well.
Comment #16
pwolanin commented15: book_manager-2209025-15.patch queued for re-testing.
Comment #17
dawehner.
Comment #18
dawehner15: book_manager-2209025-15.patch queued for re-testing.
Comment #20
dawehnerReroll
Comment #21
pwolanin commentedI think this addressed all the concerns in the last reviews.
Comment #23
dawehnerRerolled.
Comment #25
fgmRerolled on top of this morning's core.
Comment #26
fgmForgot to set status.
Comment #27
dawehnerBack to RTBC
Comment #28
catchCommitted/pushed to 8.x, thanks!