The notice only shows when creating, and dealing with books. I know its fixed in MAIN, this applies to 6--1. I didn't trace the code through to find out why $menu_link['menu_name'] is undef, just a quick fix.

Index: token_node.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/token/token_node.inc,v
retrieving revision 1.5.4.11
diff -r1.5.4.11 token_node.inc
77c77
<         $menu = $menus[$menu_link['menu_name']];
---
>         $menu = isset($menus[$menu_link['menu_name']]) ? $menus[$menu_link['menu_name']] : '';

Thanks.

CommentFileSizeAuthor
#2 book_token_notice.patch797 bytesbeginner

Comments

beginner’s picture

Title: SMall patch to remove a notice while creating a book page » notice in token_node.inc while creating a book page

Confirmed:

Undefined index: book-toc-3 in modules/token-6--1/token_node.inc on line 77.

beginner’s picture

Status: Active » Needs review
StatusFileSize
new797 bytes
greggles’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.