Warnings if no custom tokens have been defined

deviantintegral - January 20, 2009 - 19:45
Project:Skeleton outlines
Version:6.x-1.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed
Description

From #358436: No child nodes are created:

When I try to create a new instance of a book with the skeleton I receive the following warning: "warning: Invalid argument supplied for foreach() in ...\htdocs\drupal68\sites\all\modules\skeleton\skeleton_token.inc on line 210."

The following patch should prevent the warning.

AttachmentSize
358436_no_custom_tokens.patch2.46 KB

#1

deviantintegral - January 27, 2009 - 18:48

Here is an updated patch which fixes the wrong variable being sent to token_replace() for the node replacements.

AttachmentSize
358436_no_custom_tokens_1.patch 3.04 KB

#2

deviantintegral - January 28, 2009 - 17:30

This is an updated patch which applies against HEAD. I'll be committing it shortly.

AttachmentSize
358436_no_custom_tokens_2.patch 3 KB

#3

deviantintegral - January 28, 2009 - 17:52
Status:needs review» fixed

Committed to HEAD.

#4

System Message - February 11, 2009 - 18:00
Status:fixed» closed

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

 
 

Drupal is a registered trademark of Dries Buytaert.