Closed (fixed)
Project:
Token
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
10 Feb 2009 at 22:25 UTC
Updated:
24 Apr 2009 at 18:00 UTC
Jump to comment: Most recent file
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.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | book_token_notice.patch | 797 bytes | beginner |
Comments
Comment #1
beginner commentedConfirmed:
Undefined index: book-toc-3 in modules/token-6--1/token_node.inc on line 77.
Comment #2
beginner commentedComment #3
gregglesThanks - fixed! http://drupal.org/cvs?commit=195346